/* css/style.css */
:root {
    --bg-color: #f1f2f6;
    --text-color: #2f3542;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Baloo 2', cursive, sans-serif;
    color: var(--text-color);
}

/* Landing Page Background */
body { background: #fdfbfb; }

.landing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.landing-container h1 {
    font-size: 3.5rem;
    color: #ff4757;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0px #ffeaa7, 4px 4px 0 #ff6b81;
}

.landing-container p {
    font-size: 1.5rem;
    color: #57606f;
    margin-bottom: 40px;
    font-weight: bold;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Game Page Styles */
.game-body {
    background-color: #eccc68;
    background-image: linear-gradient(315deg, #f5f6fa 0%, #dcdde1 74%);
    min-height: 100vh;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    min-height: 100vh;
    padding: 20px 40px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    border-radius: 0 0 30px 30px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px dashed #dfe4ea;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.btn-back {
    text-decoration: none;
    color: #ff4757;
    font-weight: bold;
    font-size: 1.2rem;
    background: #ffcccb;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.2s;
}
.btn-back:hover { background: #ff4757; color: white; }

.topic-title {
    color: #1dd1a1;
    font-size: 2.2rem;
    margin: 0;
    text-shadow: 1px 1px 0px #aaa;
}

.score-board {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2f3542;
}

.game-board {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
    justify-content: space-around;
}

.hangman-drawing { width: 250px; height: 300px; }
.draw-line { stroke: #57606f; stroke-width: 7; stroke-linecap: round; }
.figure-part { stroke: #ff4757; stroke-width: 7; stroke-linecap: round; fill: transparent; display: none; }

.game-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

#hint-container {
    background: #feca57;
    color: #2f3542;
    padding: 15px 25px;
    border-radius: 20px;
    font-size: 1.5rem;
    margin-bottom: 30px;
    box-shadow: 0 8px 0 #ff9f43;
    font-weight: 600;
}

.word-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.letter-box {
    width: 60px;
    height: 70px;
    border-bottom: 6px solid #2f3542;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    line-height: 70px;
    text-transform: uppercase;
    color: #3742fa;
    margin-bottom: 10px;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 30px;
}

.key-btn {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: #7bed9f;
    color: #2f3542;
    cursor: pointer;
    box-shadow: 0 6px 0 #2ed573;
    transition: all 0.1s;
    font-family: inherit;
}

.key-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0 #2ed573;
}

.key-btn:disabled {
    background: #ced6e0;
    box-shadow: 0 6px 0 #a4b0be;
    cursor: not-allowed;
    color: #ffffff;
}

.key-btn.correct { background: #1dd1a1; box-shadow: 0 6px 0 #10ac84; color: white; }
.key-btn.wrong { background: #ff6b81; box-shadow: 0 6px 0 #ff4757; color: white; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden { display: none; }

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-content h2 { font-size: 3.5rem; margin-top: 0; margin-bottom: 10px; }
.modal-content p { font-size: 1.6rem; margin-bottom: 30px; font-weight: bold; color: #57606f; }

.btn-primary {
    display: block; width: 100%; padding: 15px;
    background: #ff4757; color: white; border: none; border-radius: 15px;
    font-size: 1.8rem; font-weight: bold; cursor: pointer;
    margin-bottom: 15px; font-family: inherit; box-shadow: 0 6px 0 #a31122; transition: 0.1s;
}
.btn-primary:active { transform: translateY(6px); box-shadow: 0 0 0; }

.btn-secondary {
    display: block; width: 100%; padding: 15px;
    background: #f1f2f6; color: #2f3542; text-decoration: none;
    border-radius: 15px; font-size: 1.4rem; font-weight: bold;
    box-shadow: 0 4px 0 #dfe4ea;
}
.btn-secondary:active { transform: translateY(4px); box-shadow: 0 0 0; }
