/* Additional Components & Utilities */

.hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .flex-col-mobile {
        flex-direction: column !important;
    }
}

.lg-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .lg-hidden {
        display: block;
    }
}

/* Pulse Animation for Live Indicator */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Nav Link Active State */
.nav-link.active {
    color: var(--primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Mobile Nav Links */
@media (max-width: 1024px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }
}

/* News Article Card Hover */
article.card img {
    transition: transform 0.5s ease;
}

article.card:hover img {
    transform: scale(1.1);
}

/* Admin Dashboard Elements */
#admin-news-list .glass:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Form widths */
.w-full { width: 100%; }

/* Margin utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-10 { padding: 2.5rem; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Admin nav icon */
.nav-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s, color 0.3s;
}
.nav-admin:hover { border-color: var(--primary); color: var(--primary) !important; }

/* --- Modal System --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-dark);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem 1rem 0 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-main);
}

/* Specific Modal Sizes */
.modal-overlay[data-size="large"] .modal-container {
    max-width: 1100px;
    height: 90vh;
}

.modal-body iframe {
    width: 100%;
    height: 60vh;
    border: none;
    border-radius: 0.5rem;
}
