/* ============================================
   NEWS MODAL & DETAIL STYLES
   ============================================ */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(10px);
}

.news-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.news-modal.active .news-modal-container {
    transform: translateY(0) scale(1);
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.news-modal-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.news-modal-content {
    overflow-y: auto;
    flex: 1;
}

.news-modal-image {
    width: 100%;
    height: 350px;
    position: relative;
}

.news-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-body {
    padding: var(--spacing-2xl);
}

.news-modal-meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.news-modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.news-modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.news-modal-footer {
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-loading {
    padding: var(--spacing-2xl);
    text-align: center;
}

.news-modal-loading i {
    font-size: 2rem;
    color: var(--accent-primary);
    animation: fa-spin 2s linear infinite;
}

.news-card[data-news-id] {
    cursor: pointer;
}

.news-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}
