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

:root {
    --bg-dark: #F8FBF8;
    --bg-card: #FFFFFF;
    --border-card: rgba(0, 0, 0, 0.08);
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --accent-cyan: #0891B2;       /* Adjusted darker for light background visibility */
    --accent-purple: #6D28D9;     /* Adjusted darker for readability */
    --accent-glow: rgba(109, 40, 217, 0.04);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-inter);
}

/* Prevent Font Awesome icons from inheriting parent font settings that clip or break them */
.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
    font-weight: 900 !important;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.far, .fa-regular {
    font-weight: 400 !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: rgba(248, 251, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.25rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* Main Layout Wrapper */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* AdSense Ad Slots (Cumulative Layout Shift prevention) */
.ad-slot {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
}

.ad-slot::before {
    content: "Advertisement";
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 5px;
    left: 10px;
    font-family: var(--font-outfit);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ad-header {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-sidebar {
    width: 300px;
    height: 600px;
}

.ad-inline {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-square {
    width: 336px;
    height: 280px;
}

/* Search Bar (Home Page) */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
}

.hero-section h1 {
    font-family: var(--font-outfit);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50px;
    padding: 1.25rem 10.5rem 1.25rem 2rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(8, 145, 178, 0.15), 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 50px;
    padding: 0 1.5rem;
    color: white;
    font-weight: 600;
    font-family: var(--font-outfit);
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 0.95;
}

.search-input::placeholder {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 10.5rem;
}

.search-input::-webkit-input-placeholder {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 10.5rem;
}

.search-input::-moz-placeholder {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 10.5rem;
}

.search-input:-ms-input-placeholder {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 10.5rem;
}

/* Media Queries for Search Bar Mobile responsiveness */
@media (max-width: 600px) {
    .search-input {
        font-size: 0.9rem;
        padding: 1rem 9rem 1rem 1.5rem;
    }
    .search-input::placeholder,
    .search-input::-webkit-input-placeholder,
    .search-input::-moz-placeholder,
    .search-input:-ms-input-placeholder {
        padding-right: 9rem;
    }
    .search-btn {
        padding: 0 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .search-input {
        font-size: 0.8rem;
        padding: 0.9rem 8rem 0.9rem 1.2rem;
    }
    .search-input::placeholder,
    .search-input::-webkit-input-placeholder,
    .search-input::-moz-placeholder,
    .search-input:-ms-input-placeholder {
        padding-right: 8rem;
    }
    .search-btn {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
}

/* Grids & Cards */
.grid-title {
    font-family: var(--font-outfit);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.grid-title i {
    color: var(--accent-cyan);
}

/* Detail View Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .article-layout {
        grid-template-columns: 8fr 4fr;
    }
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-family: var(--font-outfit);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: var(--accent-cyan);
}

/* Dynamic Topic Image banner */
.article-banner {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-banner img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: block;
}

/* Content Sections */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.section-card h2 {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-cyan);
    padding-left: 10px;
}

.section-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.section-card p:last-child {
    margin-bottom: 0;
}

.section-card a {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Timeline Layout */
.timeline-wrapper {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    margin-left: 0.75rem;
}

.timeline-event {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: 3px solid var(--bg-dark);
}

.timeline-time {
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.timeline-event-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-event-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Key Figures Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.player-card {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 1.25rem;
}

.player-name {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.player-role {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 8px;
}

.player-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Dynamic Public Opinion Poll */
.poll-question {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.poll-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.poll-btn i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-right: 12px;
    transition: all 0.2s;
}

.poll-options-form p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.poll-options-form p i {
    margin-top: 3px;
}

.poll-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(8, 145, 178, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.06);
}

.poll-btn:hover i {
    color: var(--accent-cyan);
    transform: scale(1.2);
}

.poll-results {
    display: none;
    margin-top: 1rem;
}

.poll-result-bar-wrapper {
    margin-bottom: 1.25rem;
}

.poll-result-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.poll-result-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.poll-result-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Sidebar Styling */
aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-widget h3 {
    font-family: var(--font-outfit);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 8px;
    color: var(--text-primary);
}

.sidebar-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link span.title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: color 0.2s;
    color: var(--text-primary);
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.sidebar-link span.title i {
    margin-top: 2px;
}

.sidebar-link:hover span.title {
    color: var(--accent-cyan);
}

.sidebar-link span.views {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Generating Load Screen */
.generating-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    width: 0%;
    animation: progressSlow 10s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes progressSlow {
    0% { width: 0%; }
    50% { width: 70%; }
    90% { width: 90%; }
    100% { width: 95%; }
}

.skeleton-header {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.skeleton-header h2 {
    font-family: var(--font-outfit);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
}

.pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(8, 145, 178, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
    }
}

/* Skeleton Shimmer Highlight Elements */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-element {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 6px;
    display: block;
}

.skeleton-article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .skeleton-article-layout {
        grid-template-columns: 8fr 4fr;
    }
}

.skeleton-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skeleton-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skeleton-card-loader {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skeleton-banner {
    width: 100%;
    height: 350px;
    border-radius: 12px;
}

.skeleton-title {
    width: 35%;
    height: 1.5rem;
    margin-bottom: 0.5rem;
}

.skeleton-line {
    width: 100%;
    height: 1rem;
}

.skeleton-line.short {
    width: 70%;
}

/* Share Button Widget */
.share-container {
    display: flex;
    gap: 8px;
    margin-top: 1.5rem;
}

.btn-share {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-share:hover {
    background: var(--accent-cyan);
    color: white;
    border-color: var(--accent-cyan);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.15);
    color: #128C7E;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

/* Footer Styling */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-card);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1F2937;
    border: 1px solid var(--accent-cyan);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #FFFFFF;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Tags Cloud / Database Badge Styles */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.trend-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
}

.trend-tag i {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.trend-tag:hover {
    border-color: var(--accent-purple);
    background: rgba(109, 40, 217, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.08);
}

.tag-views {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 4px;
}

.recent-tag i {
    color: var(--accent-purple);
}

.tag-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 4px;
}

/* Breadcrumbs Styling */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--accent-cyan);
}

.breadcrumbs .separator {
    font-size: 0.7rem;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* FAQ Accordion Styling */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.faq-item {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-color: var(--accent-cyan);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-outfit);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default arrow */
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default Safari arrow */
}

.faq-question .toggle-icon {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.faq-item[open] .faq-question .toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 1rem;
}

/* Autolink Styling */
.wiki-link {
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(8, 145, 178, 0.4);
    transition: all 0.2s;
}

.wiki-link:hover {
    color: var(--accent-purple);
    border-bottom-style: solid;
    border-bottom-color: var(--accent-purple);
    background: rgba(109, 40, 217, 0.03);
    border-radius: 3px;
    padding: 0 2px;
}

/* Smart AdSense Placements collapse when empty */
.ad-slot:empty {
    display: none !important;
}

/* Premium Blockquote Styles for Quotes */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(8, 145, 178, 0.02);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
}

blockquote p {
    margin: 0 !important;
}

blockquote cite {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: normal;
    font-weight: 600;
}

/* Clickable Associated Entities Links */
.entity-link {
    color: var(--accent-purple);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px dotted rgba(109, 40, 217, 0.3);
}

.entity-link:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: rgba(8, 145, 178, 0.02);
    border-radius: 4px;
    padding: 0 4px;
}

.entity-card-link {
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.entity-card-link .player-name {
    color: var(--accent-purple);
    border-bottom: 1px dotted rgba(109, 40, 217, 0.3);
    display: inline-block;
    transition: all 0.2s;
}

.entity-card-link .player-role {
    color: var(--accent-purple);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 4px;
    margin-bottom: 0;
    transition: all 0.2s;
}

.entity-card-link:hover .player-name {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.entity-card-link:hover .player-role {
    color: var(--accent-cyan);
}

/* Q&A Form Box Styling */
.qa-form-wrapper {
    margin-top: 1.5rem;
    border-top: 1px dashed var(--border-card);
    padding-top: 1.5rem;
}

.qa-form-wrapper p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qa-form {
    display: flex;
    gap: 10px;
}

.qa-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    color: var(--text-primary);
}

input.qa-input {
    height: 42px;
}

.qa-input:focus {
    border-color: var(--accent-cyan);
    background: white;
    box-shadow: 0 0 10px rgba(8, 145, 178, 0.1);
}

.qa-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
}

.qa-btn:hover {
    opacity: 0.9;
}

/* MSN-like Layout on Home Page */
.msn-hero-wrapper {
    margin-bottom: 3rem;
}

.msn-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.msn-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.msn-hero-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.msn-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.msn-hero-card:hover .msn-hero-image img {
    transform: scale(1.03);
}

.msn-hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.msn-badge {
    align-self: flex-start;
    background: rgba(109, 40, 217, 0.06);
    color: var(--accent-purple);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.msn-badge-featured {
    background: rgba(8, 145, 178, 0.06);
    color: var(--accent-cyan);
}

.msn-badge-trending {
    background: rgba(239, 68, 68, 0.06);
    color: #EF4444;
}

.msn-hero-content h2 {
    font-family: var(--font-outfit);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.msn-hero-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.msn-hero-content h2 a:hover {
    color: var(--accent-cyan);
}

.msn-hero-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.msn-hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-top: 1px solid var(--border-card);
    padding-top: 1rem;
}

.msn-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.msn-hero-read-btn {
    align-self: flex-start;
    flex: none;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.msn-hero-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.25);
    opacity: 0.95;
    color: white;
}


/* Grid layout for secondary preview cards */
.msn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.msn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.msn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.04);
    border-color: rgba(8, 145, 178, 0.15);
}

.msn-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.msn-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
}

.msn-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.15);
    font-size: 2.5rem;
}

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

.msn-card:hover .msn-card-image img {
    transform: scale(1.03);
}

/* Logo Image containment helper to prevent cropping */
.msn-card-image-contain, .msn-hero-image-contain {
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

.msn-card-image-contain img, .msn-hero-image-contain img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

.msn-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.msn-card-content h3 {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.2s;
}

.msn-card:hover h3 {
    color: var(--accent-cyan);
}

.msn-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.msn-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    font-weight: 500;
}

.msn-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Responsive Overrides (Mobile-First) */
@media (min-width: 768px) {
    .msn-hero-card {
        flex-direction: row;
        min-height: 400px;
        height: auto;
    }
    
    .msn-hero-image {
        width: 45%;
        min-height: 400px;
        height: auto;
    }
    
    .msn-hero-image a {
        display: block;
        width: 100%;
        height: 100%;
    }
    
    .msn-hero-content {
        width: 55%;
        padding: 2.5rem;
        justify-content: center;
    }
    
    .msn-hero-content h2 {
        font-size: 2.25rem;
    }
    
    .msn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .msn-hero-card {
        min-height: 400px;
        height: auto;
    }

    .msn-hero-image {
        width: 50%;
        min-height: 400px;
        height: auto;
    }
    
    .msn-hero-content {
        width: 50%;
        padding: 2.5rem;
        justify-content: center;
    }
    
    .msn-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Real-time Autocomplete Suggestions Dropdown */
.search-suggestions-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Adjust left/right margins for the rounded search bar on home page */
.search-form .search-suggestions-box {
    left: 25px;
    right: 25px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.suggestion-item i {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

.suggestion-item:hover {
    background: rgba(8, 145, 178, 0.05);
    color: var(--accent-cyan);
}

.suggestion-item:hover i {
    color: var(--accent-cyan);
    opacity: 1;
}


/* Compliance & Information Pages (About, Privacy) */
.compliance-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

.compliance-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.compliance-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.15);
    margin-bottom: 1.5rem;
}

.compliance-header h1 {
    font-family: var(--font-outfit);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.75px;
    line-height: 1.15;
}

.compliance-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-grid-item {
    background: rgba(8, 145, 178, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.04);
}

.about-grid-item h3 {
    font-family: var(--font-outfit);
    font-size: 1.15rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-grid-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Responsive adjustments for compliance pages */
@media (max-width: 768px) {
    .compliance-container {
        margin: 2rem auto;
    }
    
    .compliance-header {
        margin-bottom: 2rem;
    }
    
    .compliance-header h1 {
        font-size: 2.25rem;
    }
    
    .section-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .compliance-header h1 {
        font-size: 1.85rem;
        letter-spacing: -0.5px;
    }
    
    .compliance-icon-box {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }
    
    .compliance-icon-box i {
        font-size: 2rem !important;
    }
    
    .section-card {
        padding: 1.25rem;
    }
    
    .section-card h2 {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Admin Control Center Layouts */
.admin-container {
    max-width: 900px;
    margin: 2rem auto 4rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

.admin-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-header h1 {
    font-family: var(--font-outfit);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-header p {
    color: var(--text-secondary);
    margin-top: 6px;
    font-size: 1rem;
    line-height: 1.5;
}

.admin-composer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.25rem;
    border-top: 1px dashed var(--border-card);
    padding-top: 1.25rem;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.admin-actions button {
    flex: 1;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-actions .btn-copy-link-only {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    flex: 0.5;
    min-width: 120px;
}

.admin-actions .btn-copy-link-only:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.admin-actions .btn-send-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
}

.admin-actions .btn-send-whatsapp:hover {
    background: linear-gradient(135deg, #20ba59, #0f7a6d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

@media (max-width: 600px) {
    .admin-header h1 {
        font-size: 1.85rem;
    }
    
    .admin-actions button {
        flex: 1 1 100%;
        width: 100%;
    }
}




