/*
Theme Name: WorldCup Betting Theme
Theme URI: https://example.com
Description: A professional cricket and sports betting WordPress theme
Version: 1.0
Author: Developer
Text Domain: worldcup-betting
*/

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: #f5a623;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e94560;
}

/* Header */
.site-header {
    background: #0d1b2a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-top {
    background: #0a1628;
    padding: 8px 0;
    font-size: 13px;
    color: #a0aec0;
    border-bottom: 1px solid #16213e;
}

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

.header-main {
    padding: 15px 0;
}

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

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #f5a623;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-logo span {
    color: #e94560;
}

/* Navigation */
.main-navigation {
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-top: 2px solid #e94560;
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.1);
}

.nav-menu li.nav-login a {
    background: #e94560;
    color: #fff;
    border-radius: 4px;
    margin-left: 10px;
    padding: 10px 20px;
}

.nav-menu li.nav-login a:hover {
    background: #d63851;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #16213e 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(245, 166, 35, 0.1) 0%, transparent 50%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(to right, #f5a623, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 18px;
    color: #a0aec0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #f5a623);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    color: #fff;
}

/* Content Area */
.content-area {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.content-wrapper.full-width {
    grid-template-columns: 1fr;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e94560;
    text-transform: uppercase;
}

/* Latest News - Editorial Header */
.latest-news-header {
    margin-bottom: 36px;
    position: relative;
}

.latest-news-eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f5a623;
    padding: 6px 12px;
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 2px;
    margin-bottom: 18px;
    font-weight: 600;
}

.section-title.latest-news-title {
    font-size: 38px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    display: inline-block;
}

.section-title.latest-news-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #f5a623);
}

.latest-news-sub {
    font-size: 14px;
    color: #a0aec0;
    max-width: 620px;
    margin-top: 22px;
    line-height: 1.7;
    font-style: italic;
}

/* Post Cards - Editorial Grid (4 x 3 = 12 posts) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.posts-grid--editorial {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;
}

@keyframes cardRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.post-card {
    background: linear-gradient(180deg, #1a2647 0%, #131e3a 100%);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s, border-color 0.45s;
    border: 1px solid rgba(15, 52, 96, 0.9);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    animation: cardRise 0.7s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--card-delay, 0ms);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e94560 50%, transparent);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    border-color: rgba(245, 166, 35, 0.45);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card-thumb {
    height: 170px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    display: block;
    position: relative;
    overflow: hidden;
}

.post-card-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background:
        repeating-linear-gradient(45deg, rgba(245,166,35,0.04) 0 8px, transparent 8px 16px),
        linear-gradient(135deg, #0f3460, #1a1a2e);
}

.fallback-glyph {
    font-size: 42px;
    opacity: 0.7;
}

.fallback-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(160, 174, 192, 0.6);
}

.post-card-thumb img,
.post-card-thumb .post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.5s;
    filter: saturate(0.95) contrast(1.02);
}

.post-card:hover .post-card-thumb img,
.post-card:hover .post-card-thumb .post-card-img {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.08);
}

.post-card-thumb-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0) 40%, rgba(13,27,42,0.65) 100%);
    pointer-events: none;
}

.post-card-index {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f5a623;
    background: rgba(13, 27, 42, 0.78);
    padding: 4px 9px;
    border-radius: 2px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 166, 35, 0.3);
    font-feature-settings: 'tnum' 1;
}

.post-card-content {
    padding: 18px 18px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    font-size: 11px;
    color: #7a8aa6;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.post-card-meta time {
    color: #cbd5e0;
}

.post-card-meta .post-card-cat a {
    color: #e94560;
}

.post-card-meta .post-card-cat a:hover {
    color: #f5a623;
}

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

.post-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.post-card-title a {
    color: #ffffff;
    background-image: linear-gradient(#f5a623, #f5a623);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease, color 0.3s;
    padding-bottom: 2px;
}

.post-card:hover .post-card-title a,
.post-card-title a:hover {
    color: #f5a623;
    background-size: 100% 1px;
}

.post-card-excerpt {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.6;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    padding: 12px 18px 16px;
    border-top: 1px dashed rgba(15, 52, 96, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.read-more {
    color: #e94560;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more span {
    transition: transform 0.3s;
    display: inline-block;
}

.read-more:hover span,
.post-card:hover .read-more span {
    transform: translateX(4px);
}

.posts-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #a0aec0;
}

/* Live Matches Section */
.live-matches {
    background: #16213e;
    padding: 40px 0;
    margin: 40px 0;
}

.match-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.match-card {
    background: #0f3460;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.match-live-badge {
    background: #48bb78;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.match-league {
    font-size: 12px;
    color: #a0aec0;
}

.match-teams {
    text-align: center;
    margin-bottom: 15px;
}

.match-teams .team {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
}

.match-teams .vs {
    color: #e94560;
    font-size: 14px;
    font-weight: 700;
}

.match-odds {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.odds-btn {
    flex: 1;
    text-align: center;
    background: #1a1a2e;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.odds-btn:hover {
    background: #e94560;
}

.odds-btn .odds-label {
    font-size: 11px;
    color: #a0aec0;
    display: block;
}

.odds-btn .odds-value {
    font-size: 16px;
    font-weight: 700;
    color: #f5a623;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: #16213e;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #0f3460;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e94560;
    text-transform: uppercase;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #0f3460;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #a0aec0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.widget ul li a:hover {
    color: #f5a623;
}

/* Single Post */
.single-post-content {
    background: #16213e;
    border-radius: 10px;
    padding: 40px;
    border: 1px solid #0f3460;
}

.single-post-content .post-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-post-content .post-meta {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #0f3460;
    display: flex;
    gap: 20px;
}

.single-post-content .post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
}

.single-post-content .post-body p {
    margin-bottom: 20px;
}

.single-post-content .post-body h2,
.single-post-content .post-body h3 {
    margin: 30px 0 15px;
    color: #f5a623;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #0f3460;
}

.post-tags a {
    display: inline-block;
    background: #0f3460;
    color: #a0aec0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin: 5px 5px 5px 0;
}

.post-tags a:hover {
    background: #e94560;
    color: #fff;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Archive/Category Page */
.archive-header {
    background: linear-gradient(135deg, #0f3460, #16213e);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
}

.archive-header h1 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.archive-header p {
    color: #a0aec0;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: #16213e;
    border-radius: 5px;
    color: #fff;
    font-weight: 500;
    border: 1px solid #0f3460;
}

.pagination .current,
.pagination a:hover {
    background: #e94560;
    border-color: #e94560;
}

/* Footer */
.site-footer {
    background: #0d1b2a;
    padding: 60px 0 0;
    margin-top: 60px;
    border-top: 3px solid #e94560;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f5a623;
    text-transform: uppercase;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #a0aec0;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: #f5a623;
}

.footer-widget p {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    background: #080f1a;
    padding: 20px 0;
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 120px;
    background: linear-gradient(to right, #e94560, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-404 h2 {
    font-size: 28px;
    margin: 20px 0;
}

.error-404 p {
    color: #a0aec0;
    margin-bottom: 30px;
}

/* Comments */
.comments-area {
    background: #16213e;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.comments-area h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid #0f3460;
}

.comment-author {
    font-weight: 700;
    color: #f5a623;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 10px;
}

.comment-content {
    color: #e0e0e0;
    font-size: 14px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0f3460;
    border: 1px solid #1a1a2e;
    border-radius: 5px;
    color: #fff;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

.comment-form .submit:hover {
    background: #d63851;
}

/* Responsive */
@media (max-width: 1200px) {
    .posts-grid--editorial {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .posts-grid--editorial {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .section-title.latest-news-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }
    .hero-section h1 {
        font-size: 32px;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .posts-grid--editorial {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .single-post-content {
        padding: 20px;
    }
    .section-title.latest-news-title {
        font-size: 26px;
    }
    .latest-news-sub {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .posts-grid--editorial {
        grid-template-columns: 1fr;
    }
    .post-card-thumb {
        height: 200px;
    }
}
