/**
 * Blog Styles
 * Styles for blog pages (blog.php, blog-article.php, blog-videos.php)
 */

/* ============================================
   General Fixes
   ============================================ */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.footer {
    margin-top: auto;
}

/* ============================================
   Header & Burger Menu
   ============================================ */

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.header__burger span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Blog Hero Section
   ============================================ */

.blog-hero {
    padding: 135px 0 60px;
    background: linear-gradient(135deg, #efefef 0%, rgba(232, 180, 160, 0.15) 50%, #ffe7de 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Добавляем современный эффект с наложением */
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(232, 180, 160, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(44, 62, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero__title {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.blog-hero__subtitle {
    font-size: 20px;
    font-weight: 300;
    color: rgb(44 62 80);
    position: relative;
    z-index: 1;
}

/* ============================================
   Blog Layout
   ============================================ */

.blog-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* ============================================
   Blog Sidebar
   ============================================ */

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-widget__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2d3748;
}

/* Search */
.blog-search {
    display: flex;
    gap: 8px;
}

.blog-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.blog-search__input:focus {
    outline: none;
    border-color: #e8b4a0;
}

.blog-search__btn {
    padding: 10px 14px;
    background: #e8b4a0;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.blog-search__btn:hover {
    background: #d99a82;
}

/* Categories */
.blog-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-categories__item {
    margin-bottom: 8px;
}

.blog-categories__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.blog-categories__link:hover {
    background: #f7fafc;
    color: #e8b4a0;
}

.blog-categories__link--active {
    background: #e8b4a0;
    color: white;
}

.blog-categories__count {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    padding: 6px 12px;
    background: #edf2f7;
    color: #4a5568;
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.3s;
}

.blog-tag:hover {
    background: #e8b4a0;
    color: white;
}

/* ============================================
   Blog Main Content
   ============================================ */

.blog-main {
    min-height: 500px;
}

/* Filter Info */
.blog-filter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-filter-clear {
    padding: 8px 16px;
    background: transparent;
    color: #e8b4a0;
    border: 1px solid #e8b4a0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.blog-filter-clear:hover {
    background: #e8b4a0;
    color: white;
}

/* Articles Grid */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Article Card (Publication-style layout: Date Left, Content Middle, Image Right) */
.article-card {
    background: transparent;
    border-radius: 0;
    padding: 32px 0;
    box-shadow: none;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 100px 1fr 180px;
    gap: 32px;
    align-items: start;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card:hover {
    background: rgba(232, 180, 160, 0.02);
}

/* Date Column (Left) */
.article-card__date {
    text-align: left;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

/* Content Column (Middle) */
.article-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.article-card__category {
    display: inline-block;
    padding: 4px 12px;
    background: #edf2f7;
    color: #e8b4a0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 12px;
    width: fit-content;
    transition: all 0.3s;
}

.article-card__category:hover {
    background: #e8b4a0;
    color: white;
}

.article-card__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
    line-height: 1.3;
}

.article-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card__title a:hover {
    color: #e8b4a0;
}

.article-card__excerpt-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card__excerpt-link:hover .article-card__excerpt {
    color: #2c3e50;
}

.article-card__excerpt {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.article-card__image-wrapper {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Предотвращает появление белых полос */
    border-radius: 8px; /* Соответствует border-radius изображения */
    width: 160px; /* Фиксированная ширина */
    height: 160px; /* Фиксированная высота */
    flex-shrink: 0; /* Не сжимается */
}

.article-card__image-wrapper:hover {
    transform: translateY(-2px);
}

.article-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.article-card__tag {
    padding: 4px 10px;
    background: #f7fafc;
    color: #718096;
    font-size: 11px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.article-card__tag:hover {
    background: #e8b4a0;
    color: white;
}

.article-card__author {
    font-size: 14px;
    color: #718096;
    font-style: italic;
}

.article-card__meta {
    display: none;
}

/* Image Column (Right) */
.article-card__image {
    width: 100%; /* Заполняет wrapper */
    height: 100%; /* Заполняет wrapper */
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #2c3e50 0%, #e8b4a0 100%);
    display: block; /* Убирает лишние отступы */
}

/* Loading */
.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #e8b4a0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.blog-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.blog-no-results svg {
    margin-bottom: 20px;
}

.blog-no-results h3 {
    font-size: 24px;
    color: #4a5568;
    margin-bottom: 8px;
}

.blog-no-results p {
    font-size: 16px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination__btn {
    padding: 10px 16px;
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.blog-pagination__btn:hover:not(:disabled) {
    background: #e8b4a0;
    color: white;
    border-color: #e8b4a0;
}

.blog-pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-pagination__btn--active {
    background: #e8b4a0;
    color: white;
    border-color: #e8b4a0;
}

.blog-pagination__info {
    padding: 10px 16px;
    color: #718096;
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    /* Header & Navigation */
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .header__nav.active .header__nav-link,
    .header__nav.active .header__nav-btn {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header__nav.active .header__nav-link:last-child,
    .header__nav.active .header__nav-btn {
        border-bottom: none;
    }

    /* Blog Layout */
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .blog-widget {
        margin-bottom: 0;
    }

    .article-card {
        grid-template-columns: 80px 1fr 140px;
        gap: 20px;
        padding: 24px 0;
    }

    .article-card__image {
        width: 140px;
        height: 140px;
    }

    .article-card__title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 40px;
    }

    .blog-hero__title {
        font-size: 36px;
    }

    .blog-hero__subtitle {
        font-size: 16px;
    }

    .blog-content {
        padding: 40px 0;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .article-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .article-card__date {
        margin-bottom: 8px;
    }

    .article-card__image {
        width: 100%;
        height: 240px;
        order: -1;
    }

    .article-card__title {
        font-size: 18px;
    }

    .article-card__excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-hero__title {
        font-size: 28px;
    }

    .blog-filter-info {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .article-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .article-card__title {
        font-size: 16px;
    }
}

/* ============================================
   Article Page Styles
   ============================================ */

.article {
    padding: 100px 0 60px;
    background: white;
}

.article-loading {
    text-align: center;
    padding: 100px 20px;
    color: #a0aec0;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-header__category {
    display: inline-block;
    padding: 6px 16px;
    background: #edf2f7;
    color: #e8b4a0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px;
    text-decoration: none;
    margin: 40px 0 20px 0;
    transition: all 0.3s;
}

.article-header__category:hover {
    background: #e8b4a0;
    color: white;
}

.article-header__title {
    font-size: 42px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-header__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: #718096;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-header__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-header__tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-header__tag {
    padding: 6px 14px;
    background: #f7fafc;
    color: #718096;
    font-size: 13px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.article-header__tag:hover {
    background: #e8b4a0;
    color: white;
}

.article-featured-image {
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-featured-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal__content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.image-modal__close:hover {
    transform: scale(1.2);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #2d3748;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #2d3748;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid #e8b4a0;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #4a5568;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.article-footer {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

/* Social Share Buttons */
.article-share {
    max-width: 800px;
    margin: 40px auto;
    padding: 24px;
    background: #f7fafc;
    border-radius: 12px;
}

.article-share__title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.article-share__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.article-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-share__btn--vk {
    background: #0077FF;
}

.article-share__btn--vk:hover {
    background: #0066DD;
}

.article-share__btn--telegram {
    background: #0088CC;
}

.article-share__btn--telegram:hover {
    background: #0077BB;
}

.article-share__btn--whatsapp {
    background: #25D366;
}

.article-share__btn--whatsapp:hover {
    background: #20BA5A;
}

.article-share__btn--copy {
    background: #64748b;
}

.article-share__btn--copy:hover {
    background: #475569;
}

.article-share__btn--copy.copied {
    background: #10b981;
}

.article-share__btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 20px 0;
    overflow: hidden;
}

.breadcrumbs__list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    font-size: 14px;
    overflow: hidden;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

.breadcrumbs__link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumbs__link:hover {
    color: #2c3e50;
}

.breadcrumbs__separator {
    color: #cbd5e1;
    user-select: none;
    flex-shrink: 0;
}

.breadcrumbs__current {
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Responsive Breadcrumbs and Article Header */
@media (max-width: 1224px) {
    .breadcrumbs {
        padding: 15px 15px 0;
    }
}

@media (max-width: 1024px) {
    .breadcrumbs__list {
        font-size: 13px;
        gap: 6px;
    }
}

@media (max-width: 887px) {
    .article-header__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 15px 0;
    }

    .breadcrumbs__list {
        font-size: 12px;
        gap: 6px;
    }

    .breadcrumbs__item {
        gap: 6px;
    }

    /* Hide "Колонка психолога" on mobile */
    .breadcrumbs__item:nth-child(2) {
        display: none;
    }

    .article-header__title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        padding: 10px 15px 0;
    }

    .breadcrumbs__list {
        font-size: 11px;
        gap: 4px;
    }

    .breadcrumbs__item {
        gap: 4px;
    }

    /* Hide category on very small screens */
    .breadcrumbs__item:nth-child(3) {
        display: none;
    }

    .article-header__title {
        font-size: 24px;
    }
}

@media (max-width: 375px) {
    .article-header__title {
        font-size: 22px;
    }
}

.article-author {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 40px;
}

.article-author__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #2c3e50 0%, #e8b4a0 100%);
}

.article-author__info {
    flex: 1;
}

.article-author__name {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.article-author__bio {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

.article-back {
    text-align: center;
    margin-top: 40px;
}

.article-back__btn {
    display: inline-block;
    padding: 12px 32px;
    background: #e8b4a0;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.article-back__btn:hover {
    background: #d99a82;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .article-header__title {
        font-size: 32px;
    }

    .article-header__meta {
        flex-direction: column;
        gap: 12px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 26px;
    }

    .article-body h3 {
        font-size: 20px;
    }

    .article-author {
        flex-direction: column;
        text-align: center;
    }

    .article-author__photo {
        margin: 0 auto;
    }
}

/* ============================================
   Videos Page Styles
   ============================================ */

.videos-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.videos-filter__btn {
    padding: 12px 24px;
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.videos-filter__btn:hover {
    border-color: #e8b4a0;
    color: #e8b4a0;
}

.videos-filter__btn--active {
    background: #e8b4a0;
    color: white;
    border-color: #e8b4a0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-card__thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #2c3e50 0%, #e8b4a0 100%);
    overflow: hidden;
}

.video-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.video-card:hover .video-card__play {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card__play svg {
    width: 24px;
    height: 24px;
    color: #e8b4a0;
    margin-left: 4px;
}

.video-card__duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
}

.video-card__type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #e8b4a0;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.video-card__content {
    padding: 20px;
}

.video-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-card__description {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #a0aec0;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.video-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s;
}

.video-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal__info {
    padding: 24px;
}

.video-modal__title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.video-modal__description {
    font-size: 16px;
    color: #718096;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-modal__content {
        width: 95%;
    }

    .video-modal__info {
        padding: 16px;
    }

    .video-modal__title {
        font-size: 20px;
    }

    .video-modal__description {
        font-size: 14px;
    }
}

/* ============================================
   Comments Section
   ============================================ */

.comments-section {
    padding: 60px 0;
    background: #fff;
}

.comments-section__title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

/* Comments List */
.comments-list {
    margin-bottom: 50px;
}

.comments-loading,
.comments-empty,
.comments-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.comments-error {
    color: #dc3545;
}

.comment-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-item__author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.comment-item__date {
    color: #666;
    font-size: 14px;
}

.comment-item__content {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

/* Comment Form */
.comment-form-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin-top: 40px;
}

.comment-form__title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
}

.comment-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #e8b4a0;
    box-shadow: 0 0 0 3px rgba(232, 180, 160, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 6px;
}

.comment-form__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.comment-form__submit {
    background: linear-gradient(135deg, #e8b4a0 0%, #d4a190 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-form__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 180, 160, 0.4);
}

.comment-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c3e50;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    max-width: 400px;
}

.toast--show {
    opacity: 1;
    transform: translateY(0);
}

.toast--success {
    background: #28a745;
}

.toast--error {
    background: #dc3545;
}

.toast--info {
    background: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-section {
        padding: 40px 0;
    }

    .comments-section__title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .comment-form-wrapper {
        padding: 24px;
    }

    .comment-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comment-form__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .comment-form__submit {
        width: 100%;
    }

    .toast {
        right: 20px;
        left: 20px;
        bottom: 20px;
        max-width: none;
    }
}

