/*
Theme Name: 100Betz Theme
Theme URI: http://100betz.com/
Author: 100Betz
Author URI: http://100betz.com/
Description: Dark sports betting theme with neon green accents for 100betz.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 100betz-theme
Tags: custom-menu, featured-images, translation-ready
*/

:root {
    --primary: #00E676;
    --dark-bg: #0D1117;
    --surface: #161B22;
    --surface-hover: #1C2333;
    --border: #30363D;
    --text: #E6EDF3;
    --text-muted: #8B949E;
    --accent-gold: #FFD700;
    --danger: #F85149;
    --radius: 8px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #69F0AE;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--primary);
    background: rgba(0, 230, 118, 0.08);
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 200px;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
}

.main-nav li:hover > .sub-menu {
    display: flex;
}

.main-nav .sub-menu a {
    padding: 8px 16px;
    border-radius: 0;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Hero */
.hero {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.card-cta {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Single Post */
.single-header {
    position: relative;
    height: 340px;
    display: flex;
    align-items: flex-end;
}

.single-header .hero-bg {
    opacity: 0.4;
}

.single-header .hero-content {
    padding-bottom: 40px;
}

.single-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text);
}

.post-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.post-content ul, .post-content ol {
    margin: 0 0 16px 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.post-content th {
    background: var(--surface);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.post-content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

/* Odds Table */
.odds-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
}

.odds-table th {
    background: rgba(0, 230, 118, 0.1);
}

.odds-value {
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
}

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

.breadcrumbs .separator {
    margin: 0 8px;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    margin-top: 60px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding: 16px 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Section headings */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

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

/* Author Box */
.author-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    margin: 32px 0;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.author-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--text-muted);
    padding-top: 8px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav .sub-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .single-header h1 {
        font-size: 1.6rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Dropdown arrow indicator */
.main-nav .menu-item-has-children > a::after {
    content: " \25BE";
    font-size: 0.7em;
    margin-left: 4px;
}

/* Mobile sub-menu toggle */
@media (max-width: 768px) {
    .main-nav .sub-menu {
        display: none;
    }
    .main-nav .sub-menu.open {
        display: flex;
    }
}

/* Contact Form 7 */
.wpcf7 label {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-top: 6px;
    transition: border-color 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.wpcf7 input[type="submit"] {
    background: var(--primary);
    color: var(--dark-bg);
    border: none;
    border-radius: var(--radius);
    padding: 12px 32px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.85;
}

.wpcf7-response-output {
    border-color: var(--primary) !important;
    color: var(--text) !important;
    background: var(--surface) !important;
    border-radius: var(--radius);
    padding: 12px 16px;
}

/* Related Sports Grid */
.related-sports {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 60px;
}

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

.related-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: block;
    color: var(--text);
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--text);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h3 {
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FAQ Accordion (CSS-only) */
.faq-section {
    margin: 32px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: var(--surface);
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: +;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    content: −;
}

.faq-question:hover {
    background: var(--surface-hover);
}

.faq-answer {
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}
