/*
Theme Name: JALradio Theme
Theme URI: https://jalradio.com
Author: Jacques Alix Louis
Description: Custom Haitian-flag modern theme for JALradio internet radio.
Version: 1.0
Text Domain: jalradio-theme
*/

/* GLOBAL THEME VARIABLES */
:root {
    --blue: #002868;
    --red: #d21034;
    --gold: #fcd116;

    --bg: #f5f7ff;
    --text: #0a0f24;
    --card: #ffffff;
    --card-border: rgba(0,40,104,0.15);
}

.dark {
    --bg: #001533;
    --text: #f0f0f0;
    --card: rgba(255,255,255,0.08);
    --card-border: rgba(252,209,22,0.25);
}

/* GLOBAL */
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.5s ease, color 0.5s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    color: white;
}

header img {
    height: 60px;
    margin-right: 18px;
    border-radius: 8px;
}

header h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.controls {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

button {
    background: var(--gold);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #000;
    transition: 0.25s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* HERO */
.hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: white;
}

.hero h2 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* PLAYER CARD */
.player-card {
    max-width: 500px;
    margin: -40px auto 40px;
    background: var(--card);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: center;
}

audio {
    width: 100%;
}

/* CONTENT */
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.section {
    background: var(--card);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.section h3 {
    margin-top: 0;
    color: var(--blue);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    background: var(--blue);
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .controls {
        margin: 15px 0 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .player-card {
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    header img {
        height: 50px;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}
