/**
 * Дополнительные стили для темы Visaver
 */

/* Стили для кнопок */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: var(--border-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

/* Стили для форм */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    color: var(--text-color);
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
    border-color: var(--border-color);
    outline: none;
}

/* Стили для поиска */
.search-form {
    margin-bottom: 20px;
}

.search-form-inner {
    display: flex;
}

.search-field {
    flex-grow: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-submit {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Стили для комментариев */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 10px;
}

.comment-metadata {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.comment-content {
    margin-top: 10px;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

/* Стили для пагинации */
.navigation {
    margin-top: 40px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.page-numbers {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 2px;
}

.page-numbers.current {
    background: linear-gradient(180deg, #1A1A1F 0%, rgba(25, 25, 31, 0.8) 100%);
    color: var(--text-color);
}

/* Стили для виджетов */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: var(--border-color);
}

.widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Стили для мобильного меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-toggle-icon:before,
.menu-toggle-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-toggle-icon:before {
    top: -8px;
}

.menu-toggle-icon:after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #1A1A1F 0%, rgba(25, 25, 31, 0.8) 100%);;
        padding: 20px;
    }

    .main-navigation.toggled .menu {
        display: block;
    }

    .main-navigation .menu li {
        margin: 0 0 10px 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Анимации */

.post-card {
    animation: fadeIn 0.5s ease forwards;
}

.posts-grid article:nth-child(2) {
    animation-delay: 0.1s;
}

.posts-grid article:nth-child(3) {
    animation-delay: 0.2s;
}

.posts-grid article:nth-child(4) {
    animation-delay: 0.3s;
}

.posts-grid article:nth-child(5) {
    animation-delay: 0.4s;
}

.posts-grid article:nth-child(6) {
    animation-delay: 0.5s;
}

/* Стили для хлебных крошек */
.breadcrumbs {
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: '→';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.breadcrumb-item a {
    color: #8989A3;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    z-index: 1;
}

.breadcrumb-item a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #FFFFFF;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптивность для хлебных крошек */
@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 12px;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 6px;
    }
}
