/* --- 1. Μεταβλητές & Βασικά Στυλ --- */
:root {
    --primary-color: #0056b3; /* Μπλε Θεσσαλονίκης */
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --alert-bg: #e74c3c; /* Κόκκινο για έκτακτα */
    --alert-text: #ffffff;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 70px; /* Χώρος για το footer */
}

/* Κρύβει στοιχεία (π.χ. την μπάρα όταν δεν έχει έκτακτα) */
.hidden {
    display: none !important;
}

/* --- 2. Κυλιόμενη Μπάρα Έκτακτων (Ticker) --- */
.ticker {
    display: flex;
    align-items: center;
    background-color: var(--alert-bg);
    color: var(--alert-text);
    padding: 10px 0;
    font-weight: bold;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ticker-label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0 15px;
    white-space: nowrap;
    z-index: 2; /* Να είναι πάνω από το κινούμενο κείμενο */
}

.ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 15s linear infinite;
}

/* Το animation για την κύλιση */
@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- 3. Header --- */
header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 25px 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* --- 4. Κύριο Περιεχόμενο & Κάρτες --- */
main {
    padding: 0 15px;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.card:active {
    transform: scale(0.98); /* Μικρό εφέ όταν το πατάς */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-header h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge {
    background-color: #e1f0fa;
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: bold;
}

/* Στυλ για τα δεδομένα που θα μπουν με JS */
.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.temp-large {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-main);
}

.weather-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Λίστα Σεισμών */
.eq-list {
    list-style: none;
}

.eq-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eq-list li:last-child {
    border-bottom: none;
}

.eq-mag {
    background-color: #ffb703;
    color: #333;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.eq-info {
    font-size: 0.9rem;
}

/* --- 5. Footer --- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.disclaimer {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
}