/* Design Updates for Homepage - Matching Exact Reference Design */

/* === COLOR VARIABLES === */
:root {
    /* Primary Brand Colors */
    --color-primary: #FF8C00;
    --color-primary-hover: #e67e00;
    --color-primary-light: #FFB84D;

    /* Hero Gradient */
    --color-purple-dark: #2E003E;
    --color-hero-gradient: linear-gradient(90deg, #2E003E 0%, #4A005C 50%, #6A1B9A 100%);

    /* Structure Colors */
    --color-header-bg: #111111;
    --color-footer-bg: #1A1A1A;
    --color-page-bg: #F5F5F5;
    --color-card-bg: #FFFFFF;
    --color-border: #E0E0E0;

    /* Text Colors */
    --color-text-primary: #212121;
    --color-text-secondary: #555555;
    --color-text-muted: #757575;

    /* Accent Colors */
    --color-rating-gold: #FFC107;
    --color-stats-bg: #2B2B2B;

    /* Legacy compatibility */
    --color-text-dark: #212121;
    --color-orange-light: #FFF5F0;
    --color-black: #111111;
}

body {
    background-color: var(--color-page-bg);
}

/* === TAILWIND CSS OVERRIDES === */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

/* === CATEGORY SECTION === */
.category-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.category-icon-box {
    width: 60px;
    height: 60px;
    background: #FFF0E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
}

.category-icon-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.category-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #444444;
    line-height: 1.2;
}

.category-card:hover .category-icon-box {
    transform: translateY(-5px);
    background: #FFDBC9;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
}

/* === COURSE CARDS === */
.course-card-v2 {
    background: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.course-card-v2:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.course-category-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    line-height: 1;
}

.course-badge span {
    font-size: 9px;
    font-weight: 400;
    display: block;
}

/* === YOUTUBE THUMBNAILS === */
.yt-thumb-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yt-thumb-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.yt-thumb-card:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

/* === ABOUT SECTION === */
.about-frame {
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

/* === STATS STRIP === */
.stats-strip {
    background: var(--color-stats-bg);
}

.stats-value {
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.stats-label {
    color: #A0A0A0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === SECTION HEADINGS === */
.section-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
}