/*
Theme Name: Mahadev Book
Theme URI: https://mahadevbook.us.com
Description: A professional WordPress theme for online betting platforms. Dark theme with modern design, sports betting focus, responsive layout.
Version: 1.0
Author: Mahadev Development
Author URI: https://mahadevbook.us.com
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mahadev-book
Domain Path: /languages
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-light: #ff6b7a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --success: #10b981;
    --warning: #f59e0b;
    --bg-dark: #0f3460;
    --border: #2a3f5f;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-light);
}

/* WordPress Core Classes */
.wp-container-width {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.wp-block-image {
    margin-bottom: 1.5rem;
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.site-header {
    padding: 1rem 2rem;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 0;
}

.site-title a {
    color: var(--accent);
    text-decoration: none;
}

.site-description {
    display: none;
}

.site-nav {
    display: flex;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.site-nav a:hover,
.site-nav li.current-menu-item > a {
    color: var(--accent);
}

.site-nav li.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.7rem;
}

/* Submenu */
.site-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    border: 1px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-radius: 5px;
    min-width: 200px;
}

.site-nav li:hover > ul {
    display: flex;
}

.site-nav ul ul li {
    padding: 0.5rem 1.5rem;
}

/* CTA Button */
.btn-cta, .wp-block-button__link {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover, .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.3);
}

/* Main Content */
.site-content {
    margin: 0;
    padding: 0;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Posts and Pages */
.post, .page {
    margin-bottom: 2rem;
}

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

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Comments */
.comments-area {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

/* Sidebar */
aside {
    margin-top: 2rem;
}

.widget {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

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

.widget a {
    color: var(--text-secondary);
}

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

/* Footer */
footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.site-footer {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    color: var(--text-secondary);
}

.footer-widget h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-widget a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Hero Section (Home Page) */
.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(233, 69, 96, 0.1) 0%, transparent 100%);
    border-bottom: 2px solid var(--border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Grid */
.features-section,
.feature-cards {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2,
.feature-cards h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid,
.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card,
.wp-block-column {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.wp-block-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover,
.wp-block-column:hover {
    border-color: var(--accent);
    background: rgba(22, 33, 62, 0.8);
    transform: translateY(-5px);
}

.feature-card:hover::before,
.wp-block-column:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3,
.wp-block-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p,
.wp-block-column p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Payment Section */
.payment-section {
    padding: 4rem 2rem;
    background: rgba(22, 33, 62, 0.3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.payment-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-method {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.payment-method:hover {
    border-color: var(--accent);
    background: rgba(26, 26, 46, 1);
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-method p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Steps Section */
.steps-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Comparison Section */
.comparison-section {
    padding: 5rem 2rem;
    background: rgba(15, 52, 96, 0.4);
    border-top: 1px solid var(--border);
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

tr:nth-child(even) {
    background: rgba(22, 33, 62, 0.5);
}

.checkmark {
    color: var(--success);
    font-weight: bold;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent);
    background: rgba(22, 33, 62, 0.8);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent);
}

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

/* Stats Section */
.stats-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.faq-item {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(22, 33, 62, 0.8);
}

.faq-question h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    color: var(--accent);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Forms */
.wp-block-search__button,
input[type="submit"],
input[type="button"],
button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    font-family: inherit;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .site-header-inner {
        padding: 0 1rem;
    }

    .site-nav ul {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-cta {
        width: 100%;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 1rem;
    }

    .features-section h2,
    .steps-section h2,
    .testimonials-section h2,
    .faq-section h2,
    .comparison-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .site-nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--secondary);
        padding: 1rem;
        gap: 1rem;
    }

    .site-nav ul.active {
        display: flex;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .entry-content {
        padding: 1rem;
    }
}
