/* Tableau de bord - Veille Tech & Actus */

body {
    background-color: #0d1117;
    min-height: 100vh;
}

/* Cards */
.card {
    background-color: #161b22;
    border: 1px solid #30363d;
    transition: border-color 0.2s;
}
.card:hover {
    border-color: #58a6ff;
}
.card-header {
    border-bottom: 1px solid #30363d;
    font-weight: 600;
}
.category-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.4rem;
}

/* Feed sources */
.feed-source {
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #21262d;
}
.feed-source:first-child {
    margin-top: 0;
}

/* Feed items */
.feed-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid #21262d;
    font-size: 0.95rem;
}
.feed-item:last-child {
    border-bottom: none;
}
.feed-item a {
    color: #c9d1d9;
    text-decoration: none;
}
.feed-item a:hover {
    color: #58a6ff;
}
.feed-date {
    color: #484f58;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Feed title (clickable) */
.feed-title {
    color: #c9d1d9;
    font-size: 0.95rem;
}
.feed-title.has-content {
    cursor: pointer;
}
.feed-title.has-content:hover {
    color: #58a6ff;
}

/* Chevron toggle */
.feed-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
    display: inline-block;
}
.feed-chevron.open {
    transform: rotate(90deg);
}

/* Feed content (accordion) */
.feed-content {
    display: none;
    padding: 0.5rem 0.75rem;
    margin: 0.3rem 0;
    background: #0d1117;
    border-radius: 0.4rem;
    border: 1px solid #21262d;
    font-size: 0.9rem;
    color: #8b949e;
    line-height: 1.5;
}
.feed-content.open {
    display: block;
}
.feed-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 0.3rem;
    margin: 0.3rem 0;
}
.feed-content-inner a {
    color: #58a6ff;
}

/* Météo */
.meteo-city {
    background: linear-gradient(135deg, #1a2332 0%, #161b22 100%);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.meteo-city:last-child {
    margin-bottom: 0;
}
.meteo-temp {
    font-size: 2.2rem;
    font-weight: 700;
    color: #58a6ff;
}
.meteo-condition {
    color: #8b949e;
    font-size: 1rem;
}
.meteo-detail {
    color: #8b949e;
    font-size: 0.9rem;
}
.meteo-forecast {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}
.forecast-day {
    text-align: center;
    min-width: 70px;
    padding: 0.4rem;
    background: #0d1117;
    border-radius: 0.4rem;
    font-size: 0.85rem;
}
.forecast-day .temp-max {
    color: #f0883e;
    font-weight: 600;
}
.forecast-day .temp-min {
    color: #58a6ff;
}

/* Header */
.header-bar {
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
}

/* Erreurs */
.error-msg {
    color: #484f58;
    font-size: 0.85rem;
    font-style: italic;
}

/* Zone scrollable */
.scroll-area {
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #30363d #161b22;
}
.scroll-area::-webkit-scrollbar {
    width: 6px;
}
.scroll-area::-webkit-scrollbar-track {
    background: #161b22;
}
.scroll-area::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

/* Mobile : police plus grande pour la lisibilité */
@media (max-width: 768px) {
    body {
        font-size: 1.1rem;
    }
    .card-header {
        font-size: 1.15rem;
    }
    .feed-item,
    .feed-title {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    .feed-source {
        font-size: 1rem;
    }
    .feed-date {
        font-size: 0.95rem;
    }
    .feed-content {
        font-size: 1.05rem;
    }
    .feed-chevron {
        font-size: 0.85rem;
    }
    .meteo-detail,
    .meteo-condition {
        font-size: 1.1rem;
    }
    .meteo-city h6 {
        font-size: 1.1rem;
    }
    .forecast-day {
        font-size: 1rem;
    }
    .error-msg {
        font-size: 1rem;
    }
}
