/* Game Studio Mobile - Styles */
/* Theme: Neon Candy Galaxy */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #000;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #4ade80;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #4ade80;
    outline-offset: 2px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a0a2e 0%, #3d1a5c 50%, #5c2d91 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* Sparkle effect background */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Header */
header {
    position: relative;
    z-index: 10;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

nav a:hover {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
}

.hero h1 span {
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Games Section */
.games-section {
    position: relative;
    z-index: 10;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-card {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.3), rgba(217, 70, 239, 0.2));
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-icon.sudoku {
    background: linear-gradient(145deg, #8b5cf6, #d946ef);
}

.game-icon.wordsearch {
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
}

.game-card h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
}

.game-card p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.store-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-btn-text .small {
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.store-btn-text .big {
    font-size: 1.05rem;
    font-weight: 700;
}

.store-btn.google {
    background: linear-gradient(135deg, #4ade80, #06b6d4);
    color: #000;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

.store-btn.google:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.6);
}

.store-btn.apple {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #f368e0);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
}

.store-btn.apple:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(238, 90, 36, 0.7);
}

.coming-soon {
    position: relative;
}

.coming-soon::after {
    content: 'Próximamente';
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features {
    position: relative;
    z-index: 10;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 211, 238, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid rgba(74, 222, 128, 0.3);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 20px;
}

footer a {
    color: #4ade80;
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s;
}

footer a:hover {
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.contact-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Floating elements decoration */
.floating-element {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
}

.float-1 {
    width: 300px;
    height: 300px;
    background: #d946ef;
    top: 10%;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.float-2 {
    width: 200px;
    height: 200px;
    background: #4ade80;
    top: 50%;
    right: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.float-3 {
    width: 250px;
    height: 250px;
    background: #8b5cf6;
    bottom: 10%;
    left: 30%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .game-card {
        padding: 25px 20px;
    }

    .game-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .game-card h3 {
        font-size: 1.5rem;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-item {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

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

    footer a {
        display: block;
        margin: 10px 0;
    }
}

/* Privacy Page Specific Styles */
.privacy-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
}

.privacy-content .last-updated {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #4ade80;
}

.privacy-content h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #d8b4fe;
}

.privacy-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 15px;
}

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

.privacy-content li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-content li strong {
    color: #fff;
}

.privacy-content a {
    color: #4ade80;
    text-decoration: none;
    transition: all 0.3s;
}

.privacy-content a:hover {
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.highlight-box {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.1));
    border-left: 4px solid #4ade80;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box h3 {
    margin-top: 0;
}
