/* Hair Care Hub Styles */

.section-title-block {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title-block h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #3b2e43;
    margin: 0 0 0.4rem 0;
}

.section-title-block p {
    font-size: 1rem;
    color: #6b5b6d;
    margin: 0;
}

/* Tabs Navigation */
.tabs-navigation {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ead7e8;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b5b6d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #cf2f84;
}

.tab-btn.active {
    color: #cf2f84;
    border-bottom-color: #cf2f84;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ARTICLES SECTION ===== */

.articles-header {
    margin-bottom: 1.6rem;
}

.articles-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3b2e43;
    margin: 0 0 1rem 0;
}

.category-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 1.5px solid #ead7e8;
    color: #6b5b6d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #cf2f84;
    color: #cf2f84;
}

.filter-btn.active {
    background: #cf2f84;
    color: #fff;
    border-color: #cf2f84;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.article-card {
    background: #fff;
    border: 1px solid #ead7e8;
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(73, 20, 52, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    box-shadow: 0 6px 16px rgba(207, 47, 132, 0.12);
    border-color: #cf2f84;
    transform: translateY(-2px);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: #e8f2ff;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.read-time {
    font-size: 0.8rem;
    color: #9b8a9e;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b2e43;
    margin: 0;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.9rem;
    color: #6b5b6d;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #ead7e8;
}

.article-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
}

.author {
    color: #3b2e43;
    font-weight: 600;
}

.date {
    color: #9b8a9e;
}

.read-more-btn {
    background: none;
    border: none;
    color: #cf2f84;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
}

.read-more-btn:hover {
    transform: translateX(4px);
}

/* ===== VIDEOS SECTION ===== */

.videos-header {
    margin-bottom: 1.6rem;
}

.videos-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3b2e43;
    margin: 0 0 0.6rem 0;
}

.videos-header p {
    font-size: 0.95rem;
    color: #6b5b6d;
    margin: 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.video-card {
    background: #fff;
    border: 1px solid #ead7e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(73, 20, 52, 0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 6px 16px rgba(207, 47, 132, 0.12);
    transform: translateY(-4px);
    border-color: #cf2f84;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-icon {
    font-size: 3rem;
}

.play-button {
    position: absolute;
    width: 64px;
    height: 64px;
    background: rgba(207, 47, 132, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    background: rgba(207, 47, 132, 1);
    transform: scale(1.1);
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    color: #3b2e43;
    margin: 0;
    line-height: 1.3;
}

.video-description {
    font-size: 0.85rem;
    color: #6b5b6d;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #9b8a9e;
    padding-top: 0.6rem;
    border-top: 1px solid #ead7e8;
}

.views,
.author {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ===== MODALS ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content-large {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.6rem;
    border-bottom: 1px solid #ead7e8;
    gap: 1rem;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3b2e43;
    margin: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    color: #9b8a9e;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    color: #cf2f84;
    background: #fcf8fc;
    border-radius: 4px;
}

.modal-body {
    padding: 1.6rem;
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ead7e8;
}

.meta-item {
    font-size: 0.85rem;
    color: #6b5b6d;
}

.article-full-content {
    color: #3b2e43;
    line-height: 1.8;
    font-size: 0.95rem;
}

.article-full-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #cf2f84;
    margin: 1.2rem 0 0.6rem 0;
}

.article-full-content p {
    margin: 0.8rem 0;
}

.article-full-content ul,
.article-full-content ol {
    margin: 0.8rem 0;
    padding-left: 1.8rem;
}

.article-full-content li {
    margin: 0.4rem 0;
}

/* Video Player */
.video-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-details {
    padding: 1.6rem;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #9b8a9e;
    margin-bottom: 0.8rem;
}

.separator {
    color: #ddd;
}

.video-title-detail {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3b2e43;
    margin: 0.8rem 0;
}

.video-author {
    font-size: 0.9rem;
    color: #cf2f84;
    margin: 0;
    margin-bottom: 0.8rem;
}

.video-description-full {
    font-size: 0.95rem;
    color: #6b5b6d;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #cf2f84 0%, #a71f68 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
    text-align: center;
    margin-top: 2rem;
}

.support-section h3 {
    font-size: 1.4rem;
    margin: 0 0 0.8rem 0;
}

.support-section p {
    margin: 0 0 1.2rem 0;
    line-height: 1.6;
}

.support-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.soft-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.soft-btn {
    background: #fff;
    color: #cf2f84;
}

.soft-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ghost-btn {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    background: #fcf8fc;
    border: 1px dashed #ead7e8;
    border-radius: 12px;
    color: #9b8a9e;
}

/* Responsive */
@media (max-width: 900px) {
    .tabs-navigation {
        gap: 0;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
    }

    .articles-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        justify-content: flex-start;
    }

    .article-card {
        flex-direction: row;
        gap: 1rem;
    }

    .modal-content,
    .modal-content-large {
        max-width: 95vw;
        max-height: 90vh;
    }

    .video-player-container {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .section-title-block h1 {
        font-size: 1.4rem;
    }

    .tabs-navigation {
        margin-bottom: 1.2rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .articles-header h2,
    .videos-header h2 {
        font-size: 1.2rem;
    }

    .category-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .article-footer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .read-more-btn {
        width: 100%;
        text-align: center;
    }

    .modal-content,
    .modal-content-large {
        border-radius: 8px;
    }

    .modal-header {
        padding: 1.2rem;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .support-section {
        padding: 1.2rem;
    }

    .support-buttons {
        flex-direction: column;
    }

    .soft-btn,
    .ghost-btn {
        width: 100%;
    }
}

