/* ========================================
   NEWS PAGE - STYLES SPÉCIFIQUES
   ======================================== */

/* Hero Section News */
.news-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1a0000 0%, #2d0a0a 100%);
    margin-top: 80px;
    overflow: hidden;
}

.news-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.news-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.news-hero .hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--white-pure);
    margin-bottom: 1rem;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-hero .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contrôles Admin */
.admin-controls {
    padding: 2rem 0;
    background: rgba(255, 107, 53, 0.05);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-fire);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.btn-admin:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Filtres */
.news-filters {
    padding: 3rem 0;
    background: var(--soft-black);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--white-soft);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--orange-fire);
}

.filter-btn.active {
    background: var(--gradient-fire);
    border-color: transparent;
    color: white;
}

/* Grille News */
.news-grid-section {
    padding: 4rem 0 8rem;
    background: var(--primary-black);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--orange-fire);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Cartes d'actualités */
.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: var(--shadow-heavy);
}

.news-card-image {
    height: 250px;
    position: relative;
    background: var(--gradient-fire);
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--gold-primary);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.news-card-content {
    padding: 2rem;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time {
    color: var(--orange-fire);
    font-weight: 600;
}

.news-card-title {
    color: var(--white-pure);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange-fire);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.read-more-btn:hover {
    gap: 1rem;
    color: var(--gold-primary);
}

.news-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--white-soft);
}

.action-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--orange-fire);
    color: var(--orange-fire);
}

.action-btn.delete:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

/* Modal News */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-large {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large::-webkit-scrollbar {
    width: 8px;
}

.modal-large::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-large::-webkit-scrollbar-thumb {
    background: var(--gradient-fire);
    border-radius: 4px;
}

/* Formulaire News */
.news-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white-pure);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-fire);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white-soft);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-pure);
}

/* Détail News */
.news-detail {
    color: var(--white-pure);
}

.news-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.news-detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white-pure);
}

.news-detail-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.news-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.news-detail-content p {
    margin-bottom: 1.5rem;
}

/* États vides */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--orange-fire);
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .news-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card-title {
        font-size: 1.2rem;
    }
    
    .modal-large {
        max-height: 85vh;
        padding: 1.5rem;
    }
    
    .news-detail-title {
        font-size: 2rem;
    }
    
    .news-detail-image {
        height: 250px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-hero {
        min-height: 40vh;
    }
    
    .news-hero .hero-title {
        font-size: 2rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .news-card-content {
        padding: 1.5rem;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.news-card {
    animation: fadeInScale 0.4s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }