/* ========================================
 * Premium Home Page Styles
 * Dedicated CSS for the main homepage
 * ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;700&display=swap');

/* Global resets and base typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    direction: rtl;
    line-height: 1.6;
    min-height: 100vh;
}

/* Home page specific body class - Boys theme with masculine colors */
.home-page {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 25%, #34495e 75%, #2980b9 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Premium container with enhanced styling */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 15px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

    /* Subtle gradient overlay for depth */
    .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    }

/* Advanced header with premium styling */
.advanced-header {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

    .advanced-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #2c3e50, #3498db);
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .advanced-header .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .advanced-header img {
        max-width: 140px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        transition: transform 0.3s ease;
    }

        .advanced-header img:hover {
            transform: scale(1.05);
        }

    .advanced-header div div {
        margin-bottom: 0.3rem;
        font-size: 0.95rem;
        color: #555;
        font-weight: 500;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

/* Premium heading styling - Boys theme colors */
h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

    h1::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        width: 100px;
        height: 3px;
        background: linear-gradient(90deg, #2c3e50, #3498db);
        transform: translateX(-50%);
        border-radius: 2px;
    }

/* Secondary heading for department */
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #34495e;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Subtitle paragraph */
p {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Premium navigation buttons */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

    .nav-links a {
        display: inline-block;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        padding: 1rem 2rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: visible; /* Allow content to show outside button */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .nav-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .nav-links a:hover::before {
            left: 100%;
        }

        .nav-links a:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        /* Individual button styling with boys-themed masculine gradients */
        .nav-links a.leader-btn:link,
        .nav-links a.leader-btn:visited {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        }

        .nav-links a.leader-btn:hover {
            background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
            box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
        }

        .nav-links a.teacher-btn:link,
        .nav-links a.teacher-btn:visited {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        }

        .nav-links a.teacher-btn:hover {
            background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
        }

        .nav-links a.archive-btn:link,
        .nav-links a.archive-btn:visited {
            background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
        }

        .nav-links a.archive-btn:hover {
            background: linear-gradient(135deg, #ff6a00 0%, #ff8c00 100%);
            box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
        }

        /* Premium live button with special effects - Boys theme */
        .nav-links a.live-btn:link,
        .nav-links a.live-btn:visited {
            background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
            color: #fff;
            position: relative;
            animation: gentleGlow 2s ease-in-out infinite alternate;
        }

        .nav-links a.live-btn:hover {
            background: linear-gradient(135deg, #138d75 0%, #17a589 100%);
            box-shadow: 0 8px 25px rgba(22, 160, 133, 0.4);
        }

        /* Enhanced live indicator - positioned at top-left corner on top of button */
        .nav-links a.live-btn::after {
            content: "🔴 مباشر";
            position: absolute;
            top: -15px;
            left: -15px;
            background: linear-gradient(135deg, #ff4444 0%, #f44336 100%);
            color: white;
            font-size: 0.65rem;
            font-weight: 700;
            padding: 3px 6px;
            border-radius: 6px;
            white-space: nowrap;
            animation: livePulse 1s infinite;
            box-shadow: 0 2px 6px rgba(255, 68, 68, 0.3), 0 0 12px rgba(255, 68, 68, 0.2);
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

/* Premium animations */
@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentleGlow {
    0% {
        box-shadow: 0 4px 15px rgba(22, 160, 133, 0.2);
    }

    100% {
        box-shadow: 0 4px 25px rgba(22, 160, 133, 0.4);
    }
}

/* Footer styling */
.footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
    border-radius: 10px;
    margin-left: -3rem;
    margin-right: -3rem;
    margin-bottom: -3rem;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .home-page {
        padding: 1rem 0;
    }

    .container {
        margin: 1rem;
        padding: 2rem;
        border-radius: 15px;
    }

    .advanced-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

        .advanced-header .row {
            flex-direction: column;
            text-align: center;
            gap: 1.5rem;
        }

    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

        .nav-links a {
            width: 280px;
            text-align: center;
            padding: 1rem 1.5rem;
        }

    .footer {
        margin-left: -2rem;
        margin-right: -2rem;
        margin-bottom: -2rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .nav-links a {
        width: 100%;
        font-size: 1rem;
    }

    .advanced-header div div {
        font-size: 0.85rem;
    }
}
