/*
 * Movie News USA - Premium CSS Stylesheet
 * Vanilla CSS styling with variable-based Dark/Light themes,
 * smooth animations, glassmorphism elements, and responsive designs.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* --- Theme Design Variables --- */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Light Theme (Default) */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --text-primary: #12141a;
    --text-secondary: #58667e;
    --text-muted: #8c9ba5;
    --accent: #e50914; /* Hollywood Crimson */
    --accent-hover: #b8070f;
    --accent-gold: #ffc107; /* Academy Awards Gold */
    --border-color: #e5e9f0;
    --card-shadow: 0 10px 30px rgba(18, 20, 26, 0.04);
    --hover-shadow: 0 15px 40px rgba(18, 20, 26, 0.1);
    --glow-color: rgba(229, 9, 20, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --header-bg: rgba(255, 255, 255, 0.9);
}

body.dark-theme {
    /* Dark Theme */
    --bg-primary: #07080a;
    --bg-secondary: #0f111a;
    --text-primary: #f1f3f9;
    --text-secondary: #9aa8bc;
    --text-muted: #627085;
    --border-color: #1b1e2c;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --hover-shadow: 0 15px 40px rgba(229, 9, 20, 0.15);
    --glow-color: rgba(229, 9, 20, 0.25);
    --glass-bg: rgba(15, 17, 26, 0.75);
    --glass-border: rgba(27, 30, 44, 0.5);
    --header-bg: rgba(15, 17, 26, 0.9);
}

/* --- Base Rules --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.badge-crimson {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background-color: var(--accent-gold);
    color: #000000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-top {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.header-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.trending-label {
    background: linear-gradient(135deg, var(--accent), #ff5e62);
    color: #ffffff;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.trending-keywords {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.trending-keywords::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a.active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Search Controls --- */
.search-wrapper {
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 15px;
    width: 240px;
    transition: width 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-group:focus-within {
    width: 320px;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--glow-color);
}

.search-input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

.search-input-group button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* AJAX Search Results Dropdown */
.ajax-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: none;
    overflow: hidden;
    z-index: 1010;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--bg-primary);
}

.search-result-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #333;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Theme Switcher Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.theme-toggle:hover {
    background-color: var(--border-color);
}

/* --- Breaking News Ticker --- */
.ticker-wrap {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: var(--card-shadow);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 0%, rgba(7, 8, 10, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.slide-caption {
    max-width: 800px;
    color: #ffffff;
}

.slide-caption h2 {
    font-size: 2.8rem;
    margin: 12px 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    line-height: 1.1;
    color: #ffffff;
}

.slide-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.slider-nav {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-dot.active {
    background-color: var(--accent);
    transform: scale(1.25);
}

/* --- Layout Grid Systems --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin: 40px 0;
}

/* Sidebar Widgets */
.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.widget {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Post Cards & Lists --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent);
}

.card-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    background-color: #333;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

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

.card-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

/* Horizontal Card List (Alternative layout) */
.post-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.card-horizontal {
    display: flex;
    gap: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    padding: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-horizontal:hover {
    border-color: var(--accent);
    box-shadow: var(--hover-shadow);
}

.card-horizontal-img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #333;
}

.card-horizontal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* --- Review Score Widgets --- */
.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000000;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1;
}

.rating-pill-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold) 0%, #ff8f00 100%);
    color: #000000;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    flex-shrink: 0;
}

/* --- Video Trailers Block --- */
.trailers-section {
    background-color: #0d0f17;
    padding: 60px 0;
    margin: 40px 0;
    color: #ffffff;
    border-radius: 16px;
}
.trailers-section h2 {
    color: #ffffff;
}

.trailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.trailer-card {
    background-color: #161824;
    border: 1px solid #23273a;
    border-radius: 12px;
    overflow: hidden;
}

.trailer-video-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.trailer-video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-info {
    padding: 20px;
}

.trailer-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 5px;
}

/* --- Advertisement Placements --- */
.ad-placeholder {
    background-color: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: 12px;
    margin: 25px auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.ad-box {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-ad {
    margin: 10px auto;
    width: 728px;
    max-width: 100%;
}
.sidebar-ad {
    width: 300px;
    height: 250px;
    margin: 10px auto;
}

/* --- Article Details Layout --- */
.article-header {
    margin-bottom: 25px;
}

.breadcrumbs {
    display: flex;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 8px;
    margin-bottom: 15px;
}
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
}

.article-title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-meta-left {
    display: flex;
    gap: 20px;
}

.article-socials {
    display: flex;
    gap: 10px;
}

.btn-social {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
}
.btn-facebook { background-color: #3b5998; }
.btn-twitter { background-color: #1da1f2; }

.article-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}
.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 20px;
}
.article-content h3 {
    margin: 35px 0 15px 0;
    font-size: 1.5rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tag-pill {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
}
.tag-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Review Score Block (Inside post details) --- */
.review-score-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.review-score-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.review-score-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- Newsletter Subscription Panel --- */
.newsletter-banner {
    background: linear-gradient(135deg, #10121a 0%, #1e0508 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid #321013;
    position: relative;
    overflow: hidden;
}

.newsletter-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, transparent 70%);
}

.newsletter-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title-text {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.newsletter-desc-text {
    color: #a4b0be;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px;
    border-radius: 30px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 0 20px;
    font-size: 0.95rem;
    flex: 1;
}

.newsletter-form button {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    outline: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

.newsletter-msg {
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Comments Section --- */
.comments-wrap {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.comment-list {
    margin: 30px 0;
    list-style: none;
}

.comment-node {
    margin-bottom: 25px;
}

.comment-body {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.comment-author-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.comment-author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-replies {
    list-style: none;
    margin-left: 50px;
    margin-top: 20px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}

/* Comment Form */
.comment-form-wrap {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}
.form-control:focus {
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* --- Footer --- */
footer {
    background-color: #0b0c10;
    color: #a4b0be;
    padding: 60px 0 20px 0;
    border-top: 1px solid #1c1e27;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-widget p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #a4b0be;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid #1c1e27;
    padding-top: 25px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- Admin Panel Aesthetics --- */
.admin-login-body {
    background-color: #090a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.admin-login-card {
    background-color: #12141d;
    border: 1px solid #23273a;
    border-radius: 16px;
    width: 400px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.admin-dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: #0f111a;
    border-right: 1px solid #1b1e2c;
    color: #a4b0be;
    padding: 30px 20px;
}

.admin-menu {
    list-style: none;
    margin-top: 40px;
}

.admin-menu li {
    margin-bottom: 10px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: #a4b0be;
}
.admin-menu a:hover, .admin-menu a.active {
    background-color: #1b1e2c;
    color: #ffffff;
}

.admin-content {
    background-color: var(--bg-primary);
    padding: 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 45px;
}

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* --- Tables & Lists --- */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: rgba(229, 9, 20, 0.05);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .hero-slider {
        height: 380px;
    }
    .slide-caption h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    .nav-links {
        display: none; /* Mobile menu handles this */
    }
    .header-main-flex {
        padding: 10px 0;
    }
    .hero-slider {
        height: 300px;
    }
    .slide-overlay {
        padding: 20px;
    }
    .slider-nav {
        right: 20px;
        bottom: 20px;
    }
}
