/* ========================================
   PlayJackpots - Main Stylesheet
   Clean, Modern CSS - No Framework Dependencies
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #c9a227;
    --primary-dark: #a68620;
    --secondary-color: #212121;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #bdbdbd;
    --dark-bg: #1a1a1a;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --container-width: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { 
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem); 
}
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h5 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-submit:hover {
    background-color: #333;
}

.btn-cookie {
    background-color: #dcf1ff;
    color: #000;
}

.btn-cookie:hover {
    background-color: #b8e2ff;
}

/* ========================================
   Header - Transparent with Logo Left, Menu Right
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.header-cta {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 20px;
}

.header-cta:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url("https://playjackpots.io/wp-content/themes/playjackpots-io/img/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 950px;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-style: normal;
}

.hero-content h1 em {
    font-style: italic;
    color: var(--white);
}

.hero-content p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.scroll-indicator {
    margin-top: 100px;
}

.scroll-indicator a {
    color: var(--white);
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 60px 0;
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.faq-header {
    display: flex;
    align-items: center;
}

.faq-header h2 {
    margin: 0;
}

.faq-column {
    padding: 35px;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(189, 189, 189, 0.33);
    color: var(--secondary-color);
    font-weight: 700;
    border-radius: 20px 5px 5px 5px;
    margin-bottom: 10px;
}

.faq-item h5 {
    margin-bottom: 8px;
    font-weight: 700;
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 60px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.about-content p {
    color: var(--text-light);
    text-align: center;
}

/* ========================================
   Games Section
   ======================================== */
.games-section {
    padding: 100px 0;
    position: relative;
    background-image: url("https://playjackpots.io/wp-content/themes/playjackpots-io/img/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.games-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color);
}

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

.game-card {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.game-card img {
    border-radius: var(--border-radius);
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.game-card img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.game-card h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.game-card h2 a {
    color: var(--white);
}

.game-card h2 a:hover {
    color: var(--primary-color);
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    padding: 40px 0;
    background-color: var(--white);
    text-align: center;
}

.newsletter-section h2 {
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--medium-gray);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form .btn-submit {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.testimonials-header {
    display: flex;
    align-items: center;
}

.testimonial-card {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 0;
}

.testimonial-card p {
    margin-bottom: 20px;
}

.testimonial-divider {
    height: 1px;
    background-color: var(--medium-gray);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 0;
    object-fit: cover;
}

.author-info h5 {
    margin-bottom: 0;
    font-weight: 700;
}

.star-rating {
    color: #000;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-left: auto;
}

/* ========================================
   CTA Banner Section
   ======================================== */
.cta-banner {
    padding: 150px 0;
    position: relative;
    background-image: url("https://playjackpots.io/wp-content/themes/playjackpots-io/img/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color);
}

.cta-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-line {
    height: 2px;
    background-color: var(--white);
}

.cta-text {
    padding-left: 50px;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.cta-text p {
    color: var(--white);
    margin-bottom: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 60px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 25px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: var(--transition);
}

.contact-list li:hover {
    color: var(--primary-color);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.contact-icon svg {
    fill: currentColor;
}

.contact-form-wrapper {
    background-color: var(--white);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form .required {
    color: red;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Disclaimer Section
   ======================================== */
.disclaimer-section {
    padding: 60px 0;
    background-color: #8b5f16;
    text-align: center;
}

.disclaimer-section h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.disclaimer-section h3 a {
    color: var(--white);
}

.disclaimer-section p {
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 15px;
    opacity: 0.9;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    padding: 25px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.site-footer p {
    color: var(--white);
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #444546;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    z-index: 9999;
    transition: bottom 0.4s ease;
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-banner p {
    color: var(--white);
    margin: 0;
    text-align: center;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    .hero-section,
    .games-section,
    .cta-banner {
        background-attachment: scroll;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-header {
        justify-content: center;
        text-align: center;
    }
    
    .faq-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-header {
        justify-content: center;
        text-align: center;
    }
    
    .testimonial-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-line {
        display: none;
    }
    
    .cta-text {
        padding-left: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 20px 40px;
        font-size: 1.1rem;
    }
    
    .header-cta {
        margin-left: 0;
        margin-top: 30px;
        padding: 15px 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .faq-column {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .games-section {
        padding: 75px 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        border-right: 1px solid var(--medium-gray);
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn-submit {
        border-radius: var(--border-radius);
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-author {
        flex-wrap: wrap;
    }
    
    .star-rating {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .cta-banner {
        padding: 80px 0;
    }
    
    .disclaimer-section {
        padding: 40px 0;
    }
    
    .disclaimer-section h3 {
        font-size: 1.5rem;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 150px 0 80px;
    }
    
    .scroll-indicator {
        margin-top: 50px;
    }
}


/* ========================================
   Additional Page Styles
   ======================================== */

/* Solid Header (for inner pages) */
.site-header.header-solid {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

/* Page Hero Section */
.page-hero {
    padding: 180px 0 80px;
    position: relative;
    background-image: url("https://playjackpots.io/wp-content/themes/playjackpots-io/img/bg.png");
    background-size: cover;
    background-position: center;
    text-align: center;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color);
}

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

.page-hero h1 {
    color: var(--white);
    margin: 0;
    font-family: var(--font-family);
    font-size: 2.5rem;
}

/* Contact Page Section */
.contact-page-section {
    padding: 60px 0;
    background-color: var(--white);
}

/* Game Page Styles */
.game-page {
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-section {
    flex: 1;
    padding: 120px 0 40px;
    display: flex;
    flex-direction: column;
}

.game-section h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
}

.game-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Legal Content Pages */
.legal-content {
    padding: 140px 0 60px;
    background-color: var(--white);
}

.legal-content h1 {
    font-family: var(--font-family);
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content ul li {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
}

.legal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.legal-content strong {
    color: var(--secondary-color);
}

/* Responsive Adjustments for Additional Pages */
@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .game-section {
        padding: 100px 0 20px;
    }
    
    .game-container {
        aspect-ratio: 4 / 3;
    }
    
    .legal-content {
        padding: 100px 0 40px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        aspect-ratio: 3 / 4;
        min-height: 500px;
    }
}


/* ========================================
   Popup Styles
   ======================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-overlay.visible .popup-container {
    transform: scale(1) translateY(0);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #4caf50;
}

.popup-icon svg {
    width: 40px;
    height: 40px;
}

.popup-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.popup-message {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-close {
    min-width: 150px;
}

/* Button sending state */
.btn.sending {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive popup */
@media (max-width: 480px) {
    .popup-container {
        padding: 30px 20px;
    }
    
    .popup-icon {
        width: 70px;
        height: 70px;
    }
    
    .popup-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
}
