/* =========================================
   HEXA ESPORT — actualites.css
   ========================================= */

.actu-page {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 120px;
    min-height: 100vh;
    position: relative;
}

.actu-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 90%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.actu-page .container { position: relative; z-index: 1; }

.actu-page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Filtres */
.actu-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.actu-filter {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.actu-filter:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.actu-filter.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--hexa-cyan);
}

/* Grille */
.actu-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.actu-feed-index {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Carte */
.actu-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.actu-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.actu-card-compact .actu-card-body {
    padding: 16px 20px 20px;
}

/* Média — remplit toute la zone (comme bannière CT9) */
.actu-media {
    display: block;
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
}

.actu-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logos / images carrées locales : centré sans crop agressif */
.actu-media-logo .actu-media-img {
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}

.actu-media-loading {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(168, 85, 247, 0.06));
}

.actu-media-loading .actu-media-img {
    opacity: 0;
    visibility: hidden;
}

.actu-media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.3s ease;
    pointer-events: none;
}

.actu-media-overlay i {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.actu-media:hover .actu-media-img {
    transform: scale(1.04);
}

.actu-media-logo:hover .actu-media-img {
    transform: none;
}

.actu-media:hover .actu-media-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.actu-media:hover .actu-media-overlay i {
    transform: scale(1.08);
}

.actu-media-youtube .actu-media-overlay i { color: #ef4444; }
.actu-media-tiktok .actu-media-overlay i  { color: #ff0050; }
.actu-media-twitter .actu-media-overlay i { color: #1da1f2; }

.actu-media-loading .actu-media-overlay {
    background: transparent;
}

.actu-media-loading .actu-media-overlay > * {
    opacity: 0;
}

.actu-media-loading .actu-media-overlay::before {
    content: '';
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--hexa-cyan);
    border-radius: 50%;
    animation: actu-spin 0.8s linear infinite;
}

.actu-card-has-media .actu-pin {
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

/* Carte sans image — padding normal, pas d'espace vide */
.actu-card:not(.actu-card-has-media) .actu-card-body {
    padding: 24px;
}

.actu-card-compact:not(.actu-card-has-media) .actu-card-body {
    padding: 20px;
}

@keyframes actu-spin {
    to { transform: rotate(360deg); }
}

.actu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity var(--transition);
}

.actu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
}

.actu-card:hover::before { opacity: 1; }

.actu-pinned {
    border-color: rgba(0, 212, 255, 0.15);
}

.actu-pin {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hexa-cyan);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.actu-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.actu-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.actu-date {
    font-size: 0.72rem;
    color: var(--hexa-muted);
    font-weight: 500;
}

.actu-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.actu-content {
    font-size: 0.9rem;
    color: var(--hexa-dim);
    line-height: 1.65;
    flex: 1;
}

.actu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.actu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition-fast);
}

.actu-link:hover {
    color: white;
    transform: translateY(-1px);
}

.actu-link-discord:hover { border-color: #5865F2; background: rgba(88, 101, 242, 0.12); }
.actu-link-twitter:hover { border-color: #1da1f2; background: rgba(29, 161, 242, 0.12); }
.actu-link-tiktok:hover  { border-color: #ff0050; background: rgba(255, 0, 80, 0.1); }
.actu-link-twitch:hover  { border-color: #9146ff; background: rgba(145, 70, 255, 0.12); }
.actu-link-youtube:hover { border-color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.actu-link-external:hover { border-color: var(--hexa-cyan); background: rgba(0, 212, 255, 0.08); }

.actu-link-discord i { color: #5865F2; }
.actu-link-twitter i { color: #1da1f2; }
.actu-link-tiktok i  { color: #ff0050; }
.actu-link-twitch i  { color: #9146ff; }
.actu-link-youtube i { color: #ef4444; }

/* Types — couleurs */
.type-recrutement::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.type-recrutement .actu-type-badge { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); color: #22c55e; }

.type-video::before { background: linear-gradient(90deg, #ef4444, #ec4899); }
.type-video .actu-type-badge { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }

.type-annonce::before { background: linear-gradient(90deg, var(--hexa-cyan), #0891b2); }
.type-annonce .actu-type-badge { background: rgba(0, 212, 255, 0.08); border-color: rgba(0, 212, 255, 0.25); color: var(--hexa-cyan); }

.type-partenariat::before { background: linear-gradient(90deg, var(--hexa-accent), var(--hexa-purple)); }
.type-partenariat .actu-type-badge { background: rgba(192, 132, 252, 0.1); border-color: rgba(192, 132, 252, 0.3); color: var(--hexa-accent); }

.type-event::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.type-event .actu-type-badge { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: #fbbf24; }

.type-boutique::before { background: linear-gradient(90deg, var(--hexa-purple), var(--hexa-cyan)); }
.type-boutique .actu-type-badge { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.3); color: var(--hexa-purple); }

.actu-card-compact .actu-title {
    font-size: 1.05rem;
}

.actu-empty {
    text-align: center;
    color: var(--hexa-muted);
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.actu-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.actu-admin-hint {
    margin-top: 48px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--hexa-muted);
    line-height: 1.6;
}

.actu-admin-hint code {
    color: var(--hexa-cyan);
    font-size: 0.78rem;
}

@media (max-width: 768px) {
    .actu-page { padding-top: calc(var(--nav-height) + 24px); }
    .actu-feed { grid-template-columns: 1fr; }
    .actu-filters { gap: 6px; }
    .actu-filter { font-size: 0.72rem; padding: 7px 12px; }
    .actu-media { height: 180px; }
}
