/* =================================
   GameCupidd.com - Oceanic Social Casino
   Portuguese Version for Portugal
   Style: Dynamic Ocean Theme
   ================================= */

/* CSS Variables - Ocean Theme */
:root {
    /* Ocean Color Palette */
    --primary-color: #0066cc;
    --secondary-color: #00a86b;
    --accent-color: #ffd700;
    --background-dark: #001a33;
    --background-secondary: #002b4d;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --success-color: #00ff7f;
    --danger-color: #ff4444;
    --border-color: #00509e;
    --glow-color: rgba(0, 168, 107, 0.6);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Header Height */
    --header-height: 70px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* Mobile Header Height */
@media (max-width: 600px) {
    :root {
        --header-height: 60px;
    }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.98) 0%, rgba(0, 43, 77, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 168, 107, 0.3);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.logo:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.free-badge {
    background: var(--success-color);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.nav-menu li a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0, 26, 51, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-md);
        transition: left 0.4s ease-in-out;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: var(--spacing-md);
        text-align: center;
        font-size: 1.1rem;
        border: 1px solid var(--border-color);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.9), rgba(0, 43, 77, 0.9)),
                url('../images/hero_desktop_bg.png') center/cover no-repeat;
    background-attachment: scroll;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 168, 107, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 168, 107, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 168, 107, 0.3);
}

/* Features Section */
.features {
    background: linear-gradient(135deg, rgba(0, 43, 77, 0.5), rgba(0, 26, 51, 0.5));
}

.features-grid {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(135deg, rgba(0, 80, 158, 0.3), rgba(0, 43, 77, 0.3));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-speed);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 168, 107, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Games Section */
.games {
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.8), rgba(0, 43, 77, 0.8));
}

.games-grid {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(135deg, rgba(0, 80, 158, 0.2), rgba(0, 43, 77, 0.2));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.8), rgba(0, 43, 77, 0.6));
    border-bottom: 2px solid var(--border-color);
    padding: var(--spacing-md);
    display: block;
}

.game-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    line-height: 1.3;
}

.game-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex: 1;
}

.game-rating {
    display: flex;
    gap: 5px;
    margin-bottom: var(--spacing-md);
    justify-content: center;
}

.star {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.game-info .btn {
    margin-top: auto;
    width: 100%;
}

.free-tag {
    background: var(--success-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, rgba(0, 43, 77, 0.5), rgba(0, 26, 51, 0.5));
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(0, 80, 158, 0.2);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-speed);
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-lg);
    text-align: left;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Disclaimer Section */
.disclaimer-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.disclaimer-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-content h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.disclaimer-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.disclaimer-content strong {
    font-weight: 700;
}

.disclaimer-badges {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.disclaimer-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--background-dark), rgba(0, 26, 51, 0.95));
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3, .footer-section h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.compliance-logos {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.age-section {
    text-align: center;
}

.age-restriction {
    background: var(--danger-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
}

.compliance-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-md);
    align-items: center;
}

.compliance-logo {
    height: 40px !important;
    width: auto !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: all var(--transition-speed);
    border: 1px solid var(--border-color);
    object-fit: contain;
}

.compliance-logo:hover {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--glow-color);
    transform: scale(1.05);
}

.help-resources {
    margin-top: var(--spacing-md);
}

.help-resources p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Popups */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: linear-gradient(135deg, var(--background-dark), var(--background-secondary));
    padding: var(--spacing-xl);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 50px rgba(0, 168, 107, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.popup-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.popup-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 5px 25px rgba(0, 168, 107, 0.4);
}

.cookie-banner.active {
    display: block;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cookie-banner p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.cookie-buttons .btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
}

/* Mobile Cookie Banner */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
        border-bottom: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: calc(100vh - 60px);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }
    
    .features-grid,
    .games-grid {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .feature-card,
    .game-card {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }
    
    .game-card {
        margin: 0 auto;
    }
    
    .game-image {
        height: 220px;
        padding: var(--spacing-sm);
    }
    
    .game-info {
        padding: var(--spacing-md);
    }
    
    .game-info h3 {
        font-size: 1.3rem;
    }
    
    .game-info p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .game-rating {
        margin-bottom: var(--spacing-sm);
    }
    
    .star {
        font-size: 1rem;
    }
    
    .free-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .compliance-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .game-card {
        min-width: 100%;
    }
    
    .game-image {
        height: 200px;
        padding: 0.75rem;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-info h3 {
        font-size: 1.2rem;
    }
    
    .game-info p {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .game-info .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .free-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin-bottom: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
}

/* Desktop Responsive - Games in one row */
@media (min-width: 900px) {
    .games-grid {
        flex-direction: row;
        justify-content: center;
    }
    
    .game-card {
        flex: 1;
        max-width: 350px;
    }
    
    .features-grid {
        flex-direction: row;
    }
    
    .feature-card {
        flex: 1;
        max-width: 350px;
    }
}

/* Animations for scroll */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .game-card,
    .faq-item {
        animation: fadeInUp 0.6s ease-out both;
    }
    
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    
    .game-card:nth-child(1) { animation-delay: 0.1s; }
    .game-card:nth-child(2) { animation-delay: 0.2s; }
    .game-card:nth-child(3) { animation-delay: 0.3s; }
}

