/**
 * Description: Etusivun tyylit V4.0.
 * - SISÄLTÖ: Hero, Grid, Uudet laatikot, Lomake, Sivupalkki, Mobiili.
 * - UUSI: Lomaketyylit (.studio-form) ja kompaktit yhteystiedot (.contact-pill).
 * - POISTETTU: Vanhat käyttämättömät tyylit (contact-item listaus, vanha kilpailulayout).
 * Author: Markus Haapasaari / Kaupunkilehti Kalajokinen
 * Version: 4.0
 */

/* --- HERO-ALUE (Yläosa) --- */
.home-hero {
    padding: 60px 20px 80px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    max-width: 1200px;
}

.text-highlight {
    color: var(--primary-color);
}

.hero-slogan {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 700px;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.now-playing-hero {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.now-playing-hero .label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* --- PÄÄGRID (Asettelu) --- */
.seamless-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Vasen alue (laatikot) 2/3, Oikea sivupalkki 1/3 */
    gap: 60px;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 40px;
}

/* --- INTERACTIVE SECTION (Laatikot) --- */
.interactive-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Laatikot vierekkäin työpöydällä */
    gap: 30px;
    align-items: start;
}

/* Yleiset laatikko-tyylit */
.studio-box, .competition-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%; /* Tasataan korkeudet */
    box-sizing: border-box;
}

.studio-box:hover, .competition-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.box-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.box-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* --- UUSI: LOMAKETYYLIT (Viesti studioon) --- */
.studio-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fdfdfd;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-send {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-send:hover {
    background: var(--primary-color);
    color: #000;
}

/* Kompaktit yhteystiedot (Napit) */
.contact-divider {
    text-align: center;
    color: #ccc;
    font-size: 0.85rem;
    margin: 15px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-methods.compact {
    display: flex;
    gap: 10px;
}

.contact-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    transition: background 0.2s;
}

.contact-pill:hover {
    background: #eee;
}

.contact-pill.whatsapp:hover {
    background: #dcf8c6;
    color: #075e54;
}

/* Hälytykset (Onnistui/Epäonnistui viestit) */
.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- KILPAILUBOXI (Päivän kysymys) --- */
.competition-box {
    border-top: 4px solid var(--primary-color);
}

.info-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.call-to-action {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.big-phone-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* --- SIVUPALKKI (Tulossa-lista) --- */
.time-slot {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-slot .time {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    width: 80px;
    color: var(--secondary-color);
}

.time-slot .info {
    display: flex;
    flex-direction: column;
}

.time-slot .host {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ad-spot {
    background: #f9f9f9;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-weight: 700;
    border-radius: 12px;
}

.sticky-wrapper {
    position: sticky;
    top: 120px;
}

.link-arrow {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    text-decoration: none;
}

.link-arrow:hover {
    color: var(--primary-color);
}

/* --- MOBIILI --- */
@media (max-width: 1024px) {
    .seamless-grid {
        grid-template-columns: 1fr; /* Sivupalkki putoaa alas */
        gap: 60px;
    }

    .interactive-section {
        grid-template-columns: 1fr; /* Laatikot allekkain mobiilissa */
    }
}

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
