/**
 * HRVATSKA GAMBLE - Main Stylesheet
 * Google Ads Compliant Croatian Gambling Aggregator
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --navy: #0a1b3b;
    --gold: #e3b341;
    --dark-navy: #050f1f;
    --light-navy: #142a52;
    --gold-hover: #d4a535;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --text-gray: #666666;
    --border-color: #ddd;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

.main-content {
    min-height: calc(100vh - 200px);
}

/* ========================================
   Age Gate Modal
   ======================================== */
.agegate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 27, 59, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.agegate-modal {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border-top: 4px solid var(--gold);
}

.agegate-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: var(--navy);
    font-size: 32px;
    font-weight: 800;
    line-height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.agegate-modal h2 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 15px;
}

.agegate-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.agegate-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 30px;
}

.agegate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.agegate-buttons .btn {
    flex: 1;
    max-width: 180px;
}

.agegate-footer {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    background: var(--navy);
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
}

.logo-text {
    color: var(--white);
}

.logo-accent {
    color: var(--gold);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

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

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

.nav-menu a.active {
    color: var(--gold);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

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

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

.btn-secondary:hover {
    background: var(--light-navy);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-yes {
    background: var(--success);
    color: var(--white);
}

.btn-yes:hover {
    background: #218838;
}

.btn-no {
    background: var(--danger);
    color: var(--white);
}

.btn-no:hover {
    background: #c82333;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--light-navy) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 18px;
    padding: 16px 40px;
}

/* ========================================
   Casino Cards Grid
   ======================================== */
.casinos-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--navy);
}

.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.casino-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.casino-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.casino-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--light-gray);
    padding: 10px;
    border-radius: 8px;
}

.casino-info {
    flex: 1;
}

.casino-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.casino-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--success);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 8px;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.rating-stars {
    color: var(--gold);
    font-size: 16px;
}

.casino-details {
    margin-bottom: 20px;
    flex-grow: 1;
}

.casino-detail {
    margin-bottom: 12px;
    font-size: 15px;
}

.casino-detail strong {
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
}

.casino-buttons {
    display: flex;
    gap: 10px;
}

.casino-buttons .btn {
    flex: 1;
    font-size: 14px;
    padding: 12px 20px;
}

.casino-disclaimer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
    font-style: italic;
}

/* ========================================
   Info Sections
   ======================================== */
.info-section {
    padding: 60px 0;
}

.info-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--navy);
}

.info-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--navy);
}

.info-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.criteria-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.criteria-item {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
}

.criteria-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.criteria-item p {
    font-size: 14px;
    margin: 0;
}

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

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 15px;
}

.faq-answer {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.faq-answer ul {
    margin-left: 20px;
    margin-top: 10px;
}

.faq-answer li {
    list-style: disc;
    margin-bottom: 8px;
}

/* ========================================
   Responsible Gaming
   ======================================== */
.responsible-section {
    padding: 60px 0;
}

.age-warning-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--light-navy) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.age-warning-banner .age-badge {
    width: 100px;
    height: 100px;
    background: var(--gold);
    color: var(--navy);
    font-size: 40px;
    font-weight: 800;
    line-height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.age-warning-banner h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.tip-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--gold);
}

.tip-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.support-organizations {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.support-organizations h3 {
    margin-bottom: 20px;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.support-links a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--navy);
    color: var(--white);
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.support-links a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(227, 179, 65, 0.1);
}

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

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 30px;
}

.legal-page h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-page h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-page p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.legal-page ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-page ul li {
    list-style: disc;
    margin-bottom: 10px;
    line-height: 1.8;
}

.legal-page .highlight-box {
    background: var(--light-gray);
    padding: 20px;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    margin: 30px 0;
}

.last-updated {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* ========================================
   Review Page
   ======================================== */
.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.review-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: var(--light-gray);
    padding: 15px;
    border-radius: 12px;
}

.review-title-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

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

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pros, .cons {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
}

.pros h4 {
    color: var(--success);
    margin-bottom: 15px;
}

.cons h4 {
    color: var(--danger);
    margin-bottom: 15px;
}

.pros ul li, .cons ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.pros ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.cons ul li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

.review-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.spec-item {
    background: var(--white);
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.spec-item strong {
    display: block;
    color: var(--navy);
    margin-bottom: 5px;
    font-size: 14px;
}

.spec-item span {
    font-size: 16px;
    color: var(--text-gray);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-section .age-badge {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    line-height: 60px;
    border-radius: 50%;
    text-align: center;
    margin-bottom: 15px;
}

.responsible-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.footer-disclaimer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transform: scaleY(0);
        transform-origin: top;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: scaleY(1);
    }

    .nav-menu li {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .casino-header {
        flex-direction: column;
        text-align: center;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        text-align: center;
    }

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

    .agegate-buttons .btn {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 28px;
    }

    .casino-card {
        padding: 20px;
    }

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

    .agegate-modal {
        padding: 30px 20px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
