/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary: #296170;
    --primary-light: #3D8294;
    --secondary: #74C9C2;
    --accent: #F2D517;
    --success: #06D6A0;
    --info: #296170;
    --background: #D8F6F6;
    --surface: #FFFFFF;
    --text-dark: #163842;
    --text-muted: #4A6B74;
    --border-color: #B2DFDC;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-soft: 0 10px 25px -5px rgba(41, 97, 112, 0.08), 0 8px 10px -6px rgba(41, 97, 112, 0.04);
    --shadow-hover: 0 20px 30px -10px rgba(41, 97, 112, 0.2);
    --font-family: 'Vazirmatn', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    background-color: var(--background);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(#74C9C2 1.2px, transparent 1.2px), 
        radial-gradient(#296170 1.2px, var(--background) 1.2px);
    background-size: 48px 48px;
    background-position: 0 0, 24px 24px;
    background-attachment: fixed;
}

/* Header & Navigation */
/* ========================================================
   Header & Refined Modern Navigation
   ======================================================== */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(178, 223, 220, 0.45);
    box-shadow: 0 4px 20px -2px rgba(41, 97, 112, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.app-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* لۆگۆ و ناوی پڕۆژە لە لای ڕاست */
.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.brand-container:hover {
    transform: scale(1.03);
}

.brand-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(41, 97, 112, 0.2);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 21px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.brand-subtitle-mini {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.2px;
}

/* بەستەرەکانی پەڕە لە ناوەڕاست (Desktop Nav) */
.header-nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1.5px solid #E2E8F0;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #64748B;
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-nav-link:hover {
    color: var(--primary);
    background: rgba(41, 97, 112, 0.06);
}

.header-nav-link.active {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(41, 97, 112, 0.1);
}

.header-nav-link .nav-link-icon {
    font-size: 16px;
}

@media (max-width: 900px) {
    .header-nav-center {
        display: none !important;
    }
}

/* بەشەکانی بەکارهێنەر لە لای چەپ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* باجی خاڵەکان (Gold Gradient Pill) */
.header-points-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFF176 0%, #FFD54F 40%, #FFB300 75%, #F59E0B 100%);
    border: 1.5px solid #FDE68A;
    color: #1A1A1A;
    font-weight: 900;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-points-pill:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.header-points-pill .points-star {
    font-size: 15px;
}

.header-points-pill .points-num {
    font-weight: 900;
}

/* دوگمەی کۆنتڕۆڵی دەنگ */
.btn-sound-toggle {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-sound-toggle:hover {
    transform: scale(1.1);
    background: #FFFFFF;
    border-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* باجی پرۆفایلی فێرخواز (Delicate Kid Profile Pill) */
.header-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0FDFA;
    padding: 4px 12px 4px 6px;
    border-radius: 999px;
    border: 1.5px solid #CCFBF1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(41, 97, 112, 0.05);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.header-user-badge:hover {
    background: #CCFBF1;
    border-color: #99F6E4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 97, 112, 0.12);
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    padding: 1.5px;
    border: 1.5px solid var(--secondary);
    object-fit: cover;
}

.user-name-text {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 13.5px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge-arrow {
    font-size: 10px;
    color: var(--secondary);
    transition: transform 0.2s ease;
}

.header-user-badge:hover .user-badge-arrow {
    transform: translateY(2px);
}

/* دوگمەی دەرچوون (Delicate Rose Pill) */
.btn-header-action {
    background: #fff;
    border: 1.5px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-header-action.btn-logout-desktop {
    background: #FFF1F2;
    border-color: #FECDD3;
    color: #E11D48;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.06);
}

.btn-header-action.btn-logout-desktop:hover {
    background: #FFE4E6;
    border-color: #FDA4AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.12);
}

.btn-header-action:hover {
    background: #F8FAFC;
    border-color: var(--primary);
    color: var(--primary);
}

.header-center-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-stage-badge {
    background: linear-gradient(135deg, var(--primary), #6366F1);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.25);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.stage-badge-full {
    display: inline;
}

.stage-badge-mobile {
    display: none;
}

.btn-map-text-desktop {
    display: inline;
}

.btn-map-text-mobile {
    display: none;
}

/* Base Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(131, 56, 236, 0.3);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(131, 56, 236, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #FB7185);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3);
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 0, 110, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #10B981);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(6, 214, 160, 0.35);
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(6, 214, 160, 0.45);
}

/* Animations */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.08); opacity: 1; }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes pop {
    0% { transform: scale(0.7); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(131, 56, 236, 0.4); }
    70% { box-shadow: 0 0 0 18px rgba(131, 56, 236, 0); }
    100% { box-shadow: 0 0 0 0 rgba(131, 56, 236, 0); }
}

.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-pop {
    animation: pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-pulse {
    animation: pulseGlow 2s infinite;
}

.hidden {
    display: none !important;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--border-color);
}

.modal-icon-big {
    font-size: 64px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Footer */
.app-footer {
    margin-top: auto;
    background: #fff;
    border-top: 2px solid var(--border-color);
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* =============================================================
   سیستەمی تەختەی زیرەک و شاشەی گەورە (Smart Board & Fullscreen System)
   ============================================================= */

.btn-fullscreen-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #E0F2FE;
    border: 2px solid #38BDF8;
    color: #0369A1;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.2);
    white-space: nowrap;
}
.btn-fullscreen-toggle:hover {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}
.btn-fullscreen-toggle.active {
    background: linear-gradient(135deg, #FEF3C7 0%, #F59E0B 100%);
    border-color: #D97706;
    color: #78350F;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.btn-fullscreen-toggle .fs-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .btn-fullscreen-toggle {
        padding: 5px 10px;
        font-size: 12px;
    }
    .btn-fullscreen-toggle .fs-label {
        display: none;
    }
}

