@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Prompt:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #080500;
    --card-bg: rgba(18, 12, 5, 0.85);
    --primary-red: #ff5500;
    --primary-red-glow: rgba(255, 85, 0, 0.5);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --nav-bg: rgba(15, 8, 0, 0.95);
    --border-color: rgba(255, 85, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Admin Specific */
    --admin-card-bg: rgba(20, 20, 20, 0.6);
    --admin-glass: blur(10px);
    --success-green: #00ff88;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--admin-card-bg);
    backdrop-filter: var(--admin-glass);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Removed radial glow */

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Prompt', sans-serif;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.admin-action-btn.red {
    background: rgba(255, 60, 60, 0.1);
    color: var(--primary-red);
    border-color: rgba(255, 60, 60, 0.2);
}

.admin-action-btn.red:hover {
    background: var(--primary-red);
    color: white;
}

.admin-action-btn.grey {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-action-btn.grey:hover {
    background: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Prompt', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    background-image: url('../images/backgrounds/bg_1773747234.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(255, 60, 0, 0.15), transparent 70%),
        radial-gradient(circle at 50% 0%, rgba(200, 30, 0, 0.1), transparent 50%),
        rgba(0, 0, 0, 0.78);
    /* Dark tint applied globally */
    pointer-events: none;
    z-index: -1;
    animation: ambient-fire-glow 4s ease-in-out infinite alternate;
}

@keyframes ambient-fire-glow {
    0% {
        opacity: 0.6;
        filter: brightness(0.9);
    }

    50% {
        opacity: 1;
        filter: brightness(1.2);
    }

    100% {
        opacity: 0.7;
        filter: brightness(0.95);
    }
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- REFINED HEADER --- */
/* --- PREMIUM GLASSMOPRHISM HEADER --- */
header {
    height: 85px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.scrolled {
    height: 70px;
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0.3;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
}

header.scrolled .logo img {
    height: 45px;
}

/* Removed Logo Shimmer Effect */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary-red);
    font-size: 20px;
    font-family: 'Prompt', sans-serif;
}

.footer-logo-img img {
    height: 80px;
    /* Slightly larger for footer */
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    align-items: center;
    margin: 0 15px;
    /* Added margin to separate from logo/actions */
}

/* Ensure mobile actions are strictly hidden on desktop */
.mobile-only-actions {
    display: none !important;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.nav-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-red), #d40000);
    box-shadow: 0 8px 20px rgba(255, 60, 60, 0.3);
}

.nav-item.active svg {
    opacity: 1;
    color: #fff;
}

/* --- PREMIUM USER DROPDOWN --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-btn:hover {
    background: rgba(255, 60, 60, 0.12);
    border-color: rgba(255, 60, 60, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 60, 60, 0.2);
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-red), #ff7b7b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dropdown-content {
    display: none;
    /* Hidden by default */
    position: absolute;
    right: 0;
    top: calc(100% + 20px);
    background: rgba(18, 18, 18, 0.85);
    min-width: 260px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    overflow: hidden;
    z-index: 1001;
    transform-origin: top right;
    animation: dropInPremium 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes dropInPremium {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-header p {
    color: #888;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.3s;
}

.dropdown-content a i {
    width: 20px;
    font-size: 16px;
    opacity: 0.5;
    transition: 0.3s;
}

.dropdown-content a:hover {
    background: rgba(255, 60, 60, 0.08);
    color: #fff;
    padding-left: 28px;
}

.dropdown-content a:hover i {
    opacity: 1;
    color: var(--primary-red);
    transform: scale(1.1);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.dropdown-content .logout-link {
    color: var(--primary-red);
}

.dropdown-content .logout-link:hover {
    background: rgba(255, 60, 60, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: var(--primary-red);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-red-glow);
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-red), #b30000);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--primary-red-glow);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-red-glow);
}

/* --- HERO SECTION --- */
.hero {
    height: 700px;
    margin-top: 0;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.7) 30%, rgba(5, 5, 5, 0.4) 100%),
        linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 60, 60, 0.2);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Prompt', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #cc0000 100%);
    color: white;
    padding: 16px 45px;
    border-radius: 50px !important;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 60, 60, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 60, 60, 0.6);
    filter: brightness(1.2);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 45px;
    border-radius: 50px !important;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: white;
}

/* --- MAIN CONTENT --- */
main {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-left: 4px solid var(--primary-red);
    padding-left: 25px;
}

.section-title {
    font-family: 'Prompt', sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: #444;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.img-overlay-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.img-overlay-view i {
    color: white;
    font-size: 32px;
    transform: scale(0.5);
    transition: var(--transition);
}

.card-img-wrapper:hover .img-overlay-view {
    opacity: 1;
}

.card-img-wrapper:hover .img-overlay-view i {
    transform: scale(1);
}

.news-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-body {
    padding: 30px;
}

.card-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title {
    font-family: 'Prompt', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.card-link {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link svg {
    transition: var(--transition);
}

.card-link:hover svg {
    transform: translateX(5px);
}

/* --- FOOTER --- */
/* --- PREMIUM FOOTER --- */
.main-footer {
    background: linear-gradient(to top, #050505 0%, #0a0a0a 100%);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0.3;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.brand-text {
    color: var(--primary-red);
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-red-glow);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px var(--primary-red-glow);
    border-color: var(--primary-red);
}

@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #222;
}

.social-icon:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px);
}

/* --- LOGIN MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
}

.login-form h2 {
    font-family: 'Prompt', sans-serif;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-red);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #e62e2e;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    font-size: 14px;
    color: var(--text-muted);
}

.btn-logout {
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 600;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 40px;
    }

    .mobile-menu-btn {
        display: flex;
        order: 10;
        margin-left: 10px;
    }

    .nav-actions {
        display: none;
    }

    .mobile-only-actions {
        display: block !important;
    }

    .nav-links {
        position: fixed !important;
        top: 90px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 90px) !important;
        background: #0a0a0a !important;
        /* Solid dark background */
        backdrop-filter: blur(20px);
        flex-direction: column !important;
        padding: 40px 20px !important;
        gap: 10px !important;
        border-radius: 0 !important;
        border: none !important;
        border-top: 1px solid var(--border-color) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 9999 !important;
        display: flex !important;
        overflow-y: auto !important;
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.nav-active {
        left: 0 !important;
    }

    .nav-item {
        width: 100%;
        padding: 15px 25px;
        justify-content: flex-start;
        font-size: 17px;
    }

    footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }

    .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .logo img {
        height: 45px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}