/* ========================================
 * Premium Girls Middle School Home Page Styles
 * Dedicated CSS for the girls middle school 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 - Girls Middle School theme with elegant purples and rose golds */
.home-page {
    background: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 15%, #8e24aa 35%, #d81b60 60%, #ad1457 85%, #4a148c 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.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(106, 27, 154, 0.15),
        0 20px 25px rgba(142, 36, 170, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    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.9), transparent);
}

/* Advanced header with premium styling */
.advanced-header {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(216, 27, 96, 0.2);
    box-shadow: 0 6px 20px rgba(216, 27, 96, 0.15);
    position: relative;
}

.advanced-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d81b60, #ab47bc);
    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 3px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.advanced-header img:hover {
    transform: scale(1.05);
}

.advanced-header div div {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: #6a1b9a;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Premium heading styling - Girls Middle School theme colors */
h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #6a1b9a 5%, #8e24aa 20%, #8e24aa 75%, #8e24aa 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, #6a1b9a, #d81b60);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Secondary heading for department */
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #8e24aa;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Subtitle paragraph */
p {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #6a1b9a;
    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.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(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.25), transparent);
    transition: left 0.6s;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Individual button styling with girls middle school themed gradients */
.nav-links a.leader-btn:link,
.nav-links a.leader-btn:visited {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e24aa 100%);
    border-color: rgba(106, 27, 154, 0.3);
}

.nav-links a.leader-btn:hover {
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    box-shadow: 0 12px 35px rgba(106, 27, 154, 0.4);
}

.nav-links a.teacher-btn:link,
.nav-links a.teacher-btn:visited {
    background: linear-gradient(135deg, #d81b60 0%, #f06292 100%);
    border-color: rgba(216, 27, 96, 0.3);
}

.nav-links a.teacher-btn:hover {
    background: linear-gradient(135deg, #ad1457 0%, #d81b60 100%);
    box-shadow: 0 12px 35px rgba(216, 27, 96, 0.4);
}

  .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 - Girls Middle School theme */
.nav-links a.live-btn:link,
.nav-links a.live-btn:visited {
    background: linear-gradient(135deg, #e91e63 0%, #ff4081 100%);
    color: #fff;
    position: relative;
    animation: gentleGlow 2s ease-in-out infinite alternate;
    border-color: rgba(233, 30, 99, 0.3);
}

.nav-links a.live-btn:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.5);
}

/* 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, #ff1744 0%, #f50057 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 3px 8px rgba(255, 23, 68, 0.4),
        0 0 15px rgba(255, 23, 68, 0.3);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Premium animations */
@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentleGlow {
    0% {
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
    }
    100% {
        box-shadow: 0 8px 30px rgba(233, 30, 99, 0.5);
    }
}

/* 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(252, 228, 236, 0.8) 0%, rgba(248, 187, 217, 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;
    }
}