/* Pusulabet Premium Sport Portal - Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
    --bg-primary: #070b19;
    --bg-secondary: #0d152d;
    --bg-tertiary: #142145;
    --accent-cyan: #00f0ff;
    --accent-gold: #ffd166;
    --accent-green: #06d6a0;
    --text-primary: #f8f9fa;
    --text-secondary: #a5b1c2;
    --text-muted: #68768a;
    --border-color: rgba(0, 240, 255, 0.1);
    --border-hover: rgba(0, 240, 255, 0.3);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SPA View Swapping */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navigation */
header {
    background-color: rgba(7, 11, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

header.scrolled {
    background-color: #070b19;
    box-shadow: var(--shadow-premium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
    cursor: pointer;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: #00d2e0;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background-color: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Live Score Ticker */
.ticker-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 12px 0;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-title {
    background: linear-gradient(135deg, var(--accent-cyan), #0096c7);
    color: var(--bg-primary);
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-title span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

.ticker-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    width: 100%;
}

.ticker-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

.ticker-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: var(--transition-smooth);
    min-width: 220px;
}

.ticker-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.ticker-team {
    font-size: 13px;
    font-weight: 500;
}

.ticker-score {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(255, 209, 102, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.ticker-time {
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 64px 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(255, 209, 102, 0.04) 0%, transparent 50%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-badge {
    background-color: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-widget {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.hero-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-cyan);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
}

.widget-live-badge {
    background-color: var(--accent-green);
    color: #070b19;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.widget-match {
    background-color: rgba(7, 11, 25, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.widget-match-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.widget-match-team span {
    font-weight: 600;
}

.widget-match-odds {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.odds-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.odds-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background-color: rgba(0, 240, 255, 0.05);
}

.odds-btn span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Features/Highlights Section */
.features-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--accent-cyan);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 8px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(7, 11, 25, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

.card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: auto;
}

.read-more {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.read-more:hover {
    gap: 10px;
}

/* Rich Text Styling (Article Layout) */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px 0;
}

.rich-text {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.article-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.article-category {
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 14px;
}

/* HTML Core Elements inside Rich Text */
.rich-text h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid var(--accent-cyan);
    color: var(--text-primary);
}

.rich-text h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 16px 0;
    color: var(--text-primary);
}

.rich-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.rich-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.rich-text blockquote {
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--accent-gold);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.rich-text blockquote p {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 17px;
}

.rich-text blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

.rich-text ul, .rich-text ol {
    margin: 24px 0 24px 24px;
}

.rich-text li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 16px;
}

.rich-text ul li {
    list-style: none;
    position: relative;
    padding-left: 10px;
}

.rich-text ul li::before {
    content: '•';
    color: var(--accent-cyan);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.rich-text th, .rich-text td {
    padding: 14px 18px;
    text-align: left;
}

.rich-text th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.rich-text td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.rich-text tr:last-child td {
    border-bottom: none;
}

.rich-text tr:hover td {
    background-color: rgba(0, 240, 255, 0.02);
}

.rich-text code {
    background-color: var(--bg-tertiary);
    color: var(--accent-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.rich-text figure {
    margin: 32px 0;
    text-align: center;
}

.rich-text figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.rich-text figure figcaption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Article Sidebar Widget */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 12px;
}

.news-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--bg-tertiary);
    flex-shrink: 0;
}

.news-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.news-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.news-item-title a:hover {
    color: var(--accent-cyan);
}

.news-item-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, #0f1c3f, #070b19);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-banner h2 span {
    color: var(--accent-cyan);
}

.cta-banner p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px auto;
}

/* SEO Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: var(--text-secondary);
    margin: 16px 0;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.footer-links-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-cyan);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-seo-notes {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Animations */
@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.3; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(6, 214, 160, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 214, 160, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 99;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-actions {
        display: none;
    }
}
