/* THEME */
.theme-dark {
    background: #0b0b0b;
    color: #fff;
}

/* HERO */
.chess-hero {
    text-align: center;
    padding: 70px 20px;
    background: radial-gradient(circle at top, #1a1a1a, #000);
}

.chess-hero h1 {
    color: #ffcc00;
    font-size: 38px;
    animation: fadeUp 1s ease;
}

.chess-hero p {
    color: #ccc;
}

/* COURSES */
.chess-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

/* CARD */
.course-card {
    background: #111;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255,204,0,.2);
}

.course-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.course-card .icon {
    color: #ffcc00;
    font-size: 22px;
    margin-bottom: 5px;
}

.course-card h3 {
    color: #ffcc00;
}

.course-card .level {
    color: #aaa;
    font-size: 14px;
}

.course-card .price {
    font-size: 20px;
    color: #ffcc00;
    margin: 10px 0;
}

.course-card button {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 10px 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

/* MODAL */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 999;
}

.modal-content {
    background: #111;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    animation: fadeUp .4s ease;
}

.modal-content input {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 600px) {
    .chess-hero h1 {
        font-size: 28px;
    }
}

/* ANIMATION */
@keyframes fadeUp {
    from {opacity:0; transform: translateY(20px);}
    to {opacity:1; transform: translateY(0);}
}
