/* ===========================
   CSS Variables & Base Setup
   =========================== */

:root {
    /* Primary Colors - Nova Paleta */
    --primary-bg: #2b2d42;           /* Azul escuro/naval */
    --secondary-bg: #edf2f4;         /* Cinza muito claro */
    --card-bg: #edf2f4;              /* Cinza muito claro para cards */
    
    /* Accent Colors - Nova Paleta */
    --primary-cta: #ef233c;          /* Vermelho brilhante para CTAs */
    --secondary-cta: #d90429;        /* Vermelho escuro para hovers */
    --success-rating: #d90429;       /* Vermelho escuro para ratings */
    --accent-blue: #8d99ae;          /* Azul acinzentado para elementos secundários */
    --warning-stars: #ffa726;        /* Laranja para estrelas (complementar à paleta) */
    --text-primary: #ffffff;         /* Branco para texto em fundos escuros */
    --text-secondary: #2b2d42;       /* Azul escuro para texto em fundos claros */
    --text-muted: #8d99ae;           /* Azul acinzentado para texto secundário */
    
    /* Semantic Colors - Ajustadas para nova paleta */
    --error: #ef233c;
    --warning: #ffa726;
    --info: #8d99ae;
    --success: #d90429;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-h1: 2.5rem;
    --font-h2: 1.5rem;
    --font-h3: 1.25rem;
    --font-body: 1rem;
    --font-small: 0.875rem;
    --font-xs: 0.75rem;
    --font-rating: 2rem;
    
    /* Spacing */
    --container-max-width: 1200px;
    --header-height: 80px;
    --card-gap: 20px;
    --section-padding: 60px;
}

/* ===========================
   Base Styles & Reset
   =========================== */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ===========================
   Age Verification Modal
   =========================== */

.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.age-modal.hidden {
    display: none;
}

.age-modal-content {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.age-modal-content h2 {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: var(--font-h2);
}

.age-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: var(--font-body);
}

.age-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-confirm, .btn-exit {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-confirm {
    background-color: var(--success);
    color: var(--text-primary);
}

.btn-confirm:hover {
    background-color: var(--accent-blue);
    transform: translateY(-1px);
}

.btn-exit {
    background-color: var(--error);
    color: var(--text-primary);
}

.btn-exit:hover {
    background-color: var(--secondary-cta);
    transform: translateY(-1px);
}

/* ===========================
   Warning Banner
   =========================== */

.warning-banner {
    background: #000000;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    font-size: var(--font-small);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.warning-banner p {
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* ===========================
   Header Styles
   =========================== */

.header {
    height: var(--header-height);
    background: transparent;
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

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

.logo a {
    display: block;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Navigation styles removed - navigation no longer used */

/* ===========================
   Main Content
   =========================== */

.main-content {
    flex: 1;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    text-align: center;
    padding: var(--section-padding) 0;
}

.hero-title {
    font-size: var(--font-h1);
    font-weight: bold;
    margin: 0 0 20px 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-h2);
    color: var(--text-primary);
    margin: 0;
    opacity: 0.9;
}

/* ===========================
   Platform Cards Grid
   =========================== */

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--card-gap);
    padding-bottom: var(--section-padding);
}

.platform-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.platform-card.featured {
    border: 2px solid var(--primary-cta);
}

.featured-banner {
    position: absolute;
    top: 15px;
    right: -25px;
    background: var(--primary-cta);
    color: var(--text-primary);
    padding: 5px 35px;
    font-size: var(--font-small);
    font-weight: bold;
    transform: rotate(25deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-placeholder {
    display: none;
    font-weight: bold;
    color: var(--text-secondary);
    font-size: var(--font-small);
}

.platform-name {
    flex: 1;
}

.platform-name h3 {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-h3);
    font-weight: bold;
    line-height: 1.2;
}

.card-content {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rating-section {
    margin-bottom: 20px;
}

.rating-number {
    font-size: var(--font-rating);
    font-weight: bold;
    color: var(--success-rating);
    line-height: 1;
}

.rating-denominator {
    font-size: var(--font-body);
    color: var(--text-muted);
    margin-left: 2px;
}

.star-rating {
    margin-top: 8px;
}

.star-rating i {
    color: var(--warning-stars);
    font-size: var(--font-body);
    margin-right: 2px;
}

.bonus-description {
    margin-bottom: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bonus-description p {
    margin: 0;
    font-size: var(--font-body);
    line-height: 1.5;
    color: var(--text-secondary);
}

.cta-button {
    background: var(--primary-cta);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: var(--font-body);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.cta-button:hover {
    background: var(--secondary-cta);
    transform: translateY(-1px);
}

.cta-button:focus {
    outline: 2px solid var(--warning-stars);
    outline-offset: 2px;
}

.cta-helper {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    line-height: 1.3;
    font-style: italic;
}

/* ===========================
   Responsible Gaming Notice
   =========================== */

.responsible-gaming-notice {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    margin-top: 40px;
}

.notice-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.notice-content p {
    font-size: var(--font-small);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.notice-content a {
    color: var(--warning-stars);
    text-decoration: none;
    transition: color 0.3s ease;
}

.notice-content a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ===========================
   Footer Styles
   =========================== */

.footer-gamcare {
    padding: 30px 0;
}

.gamcare-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.gamcare-logo {
    display: block;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.gamcare-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gamcare-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer {
    background: var(--primary-bg);
    color: var(--text-primary);
    padding: 40px 0 20px;
    margin-top: auto;
}

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

.footer-section h3 {
    font-size: var(--font-h3);
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--warning-stars);
}

.trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: var(--primary-cta);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-small);
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

.responsible-gaming-logos span {
    font-size: var(--font-small);
    opacity: 0.8;
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Tablet Styles */
@media (max-width: 1023px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .gamcare-logos {
        gap: 30px;
    }
    
    .gamcare-logo img {
        height: 45px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    :root {
        --font-h1: 2rem;
        --font-h2: 1.3rem;
        --font-rating: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        justify-content: center;
        padding: 10px 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-card {
        padding: 25px;
        min-height: 320px;
    }
    
    .age-modal-content {
        margin: 20px 10px;
        padding: 30px 20px;
    }
    
    .age-modal-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-confirm, .btn-exit {
        width: 100%;
        max-width: 200px;
    }
    
    .responsible-gaming-notice {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .notice-content {
        padding: 0 10px;
    }
    
    .notice-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .warning-banner {
        padding: 12px 0;
        font-size: 0.8rem;
    }
    
    .warning-banner p {
        line-height: 1.3;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-gamcare {
        padding: 20px 0;
    }
    
    .gamcare-logos {
        gap: 20px;
        justify-content: center;
    }
    
    .gamcare-logo img {
        height: 40px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .platform-card {
        padding: 20px;
        min-height: 300px;
    }
    
    .featured-banner {
        font-size: 0.7rem;
        padding: 4px 30px;
    }
    
    .card-header {
        gap: 12px;
    }
    
    .card-logo {
        width: 70px;
        height: 70px;
    }
    
    .card-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 50%;
    }
    
    .platform-name h3 {
        font-size: 1rem;
    }
}

/* ===========================
   Accessibility
   =========================== */

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--warning-stars);
    outline-offset: 2px;
}

/* CTA button focus handled separately above */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .platform-card {
        border: 1px solid var(--text-secondary);
    }
    
    .rating-number {
        color: var(--secondary-cta);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 