/* Asasiyat w l'khat (Font) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    /* خلفية بيضاء مايلة للرمادي شوية باش يبانو البطاقات */
    background-color: #f4f6f9;
    background-attachment: fixed;
    color: #1a1a1a; /* كتابة كحلة */
    text-align: center;
    min-height: 100vh;
}

/* Écrans w Wajihat L'i3dad */
.screen {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glassmorphism Card (Zaj Mdbeb l'page lowla) */
.glass-card {
    background: #ffffff; /* بطاقة بيضاء */
    border: 2px solid #284766; /* إطار أزرق بسطة */
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(40, 71, 102, 0.15); /* ظل خفيف أزرق */
    margin-top: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    color: #284766; /* عنوان بالزرق */
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

/* L'bouton dyal L'bidayat (Glow Effect) */
.glow-button {
    background: #284766; /* بوطون زرقاء */
    color: white;
    font-size: 24px;
    font-weight: bold;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 30px;
    transition: 0.4s;
    box-shadow: 0 4px 15px rgba(40, 71, 102, 0.4);
}

.glow-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: #365f87;
    box-shadow: 0 6px 20px rgba(40, 71, 102, 0.6);
}

/* L'Loha dyal n9ati (Scoreboard) */
.scoreboard {
    display: flex;
    justify-content: space-around;
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1000px;
    border: 2px solid #284766;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.team {
    font-size: 28px;
    font-weight: bold;
    color: #284766;
}

.team span {
    color: #e94560; /* النقط باللون الأحمر باش يبانو */
    font-size: 36px;
    text-shadow: none;
}

/* Chabaka dyal L'jeu */
#board-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    width: 100%;
}

.category-header {
    background: #284766; /* عناوين الفئات بالزرق */
    color: white;
    padding: 20px 10px;
    font-weight: 900;
    border-radius: 12px;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(40, 71, 102, 0.2);
}

.question-btn {
    background: #ffffff; /* مربعات الأسئلة بيضين */
    color: #284766; /* رقم السؤال بالزرق */
    font-size: 32px;
    font-weight: 900;
    border: 2px solid #284766;
    padding: 30px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.question-btn:hover {
    background: #284766;
    color: white;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(40, 71, 102, 0.3);
}

.question-btn.disabled {
    background-color: #f0f0f0;
    color: #ccc;
    pointer-events: none;
    border-color: #ddd;
}

/* Écran dyal So2al */
#timer-display {
    font-size: 100px;
    font-weight: 900;
    color: #e94560;
    margin: 20px 0;
}

#question-content img {
    max-width: 70%;
    max-height: 400px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

#question-content p {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.judge-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.judge-btn {
    padding: 15px 40px;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.judge-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Chabaka dyal 3zil les catégories */
.selectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* L'Karta dyal l'catégorie */
.cat-card {
    background: #ffffff;
    border: 2px solid #284766;
    color: #284766;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-card img, .cat-card .cat-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 10px;
    object-fit: cover;
    font-size: 50px;
}

/* Fach kadekhtar chi catégorie */
.cat-card.selected {
    background: #e8f0f8; /* زرق بارد بزاف */
    border-color: #284766;
    box-shadow: 0 0 15px rgba(40, 71, 102, 0.3);
    transform: scale(1.05);
}

.cat-card:hover {
    background: #f4f6f9;
}

.mini-glow {
    background: #ffffff;
    border: 1px solid #284766;
    color: #284766;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin: 3px;
    transition: 0.2s;
}

.mini-glow:hover {
    background: #284766;
    color: #ffffff;
}

.mini-glow:disabled {
    opacity: 0.3;
    pointer-events: none;
    border-color: #ccc;
    color: #ccc;
}

.lifeline-box h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
}