@import url('style.css');

body {
    display: block !important;
    align-items: initial !important;
}

.main-wrapper {
    min-height: 100vh;
    padding-top: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

.header-main {
    text-align: center;
    margin-bottom: 2px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header-main h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    animation: none !important;
}

.header-main h1 .it {
    color: var(--accent-it);
    text-shadow: var(--shadow-it);
    animation: none !important;
}

.header-main h1 .car {
    color: var(--accent-car);
    text-shadow: var(--shadow-car);
    animation: none !important;
}

/* Навигация по разделам */
.blog-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 12px 25px;
    background: rgba(255,255,255,0.05);
    border: 2px solid #333;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-it);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--accent-it);
    border-color: var(--accent-it);
    color: white;
}

.nav-link i {
    color: var(--accent-it);
}

.nav-link.active i {
    color: white;
}

/* Поиск */
.search-bar {
    background: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    border: 1px solid #333;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-it);
}

.search-bar button {
    padding: 15px 35px;
    background: var(--accent-it);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--accent-car);
    transform: translateY(-2px);
}

/* Результаты поиска */
.search-results {
    background: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-left: 4px solid var(--accent-it);
    border-right: 4px solid var(--accent-car);
}

.search-results h2 {
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    color: var(--accent-it);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-results-info {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.post-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.post-item-info {
    flex: 1;
}

.blog-category {
    display: inline-block;
    background: var(--accent-car);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-item-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.post-item-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
}

.post-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-item-meta i {
    color: var(--accent-it);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-it);
}

/* Навигация */
.back-link {
    text-align: center;
    margin-top: 5px;
}

.back-link a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-car);
    color: var(--bg-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(255, 60, 0, 0.3);
}

.back-link a:hover {
    background: #ff5500;
    transform: translateY(-2px);
    box-shadow: var(--shadow-car);
}

/* Пагинация */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination {
    display: flex;
    background: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a:last-child,
.pagination span:last-child {
    border-right: none;
}

.pagination a:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-it);
    box-shadow: var(--shadow-it);
}

.pagination .active {
    background: var(--accent-it);
    color: white;
    border-color: var(--accent-it);
    font-weight: bold;
    pointer-events: none;
}