/* Landing Page Styles */

/* Hero Section */
.landing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.game-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.btn-play {
    background: #ff6b6b;
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-play-large {
    background: #2563eb;
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-play-large:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 200px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.store-badge:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.store-badge svg {
    width: 24px;
    height: 24px;
}

.store-text-content {
    display: flex;
    flex-direction: column;
    color: white;
    text-align: left;
}

.store-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
    line-height: 1;
}

.store-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Game Preview Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.game-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tetris-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.block {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.block:nth-child(1) { animation-delay: 0s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.4s; }
.block:nth-child(4) { animation-delay: 0.6s; }
.block:nth-child(5) { animation-delay: 0.8s; }
.block:nth-child(6) { animation-delay: 1s; }
.block:nth-child(7) { animation-delay: 1.2s; }

.block-i { background: linear-gradient(135deg, #00F0F0, #00D0D0); }
.block-o { background: linear-gradient(135deg, #F0F000, #D0D000); }
.block-t { background: linear-gradient(135deg, #A000F0, #8000D0); }
.block-s { background: linear-gradient(135deg, #00F000, #00D000); }
.block-z { background: linear-gradient(135deg, #F00000, #D00000); }
.block-j { background: linear-gradient(135deg, #0000F0, #0000D0); }
.block-l { background: linear-gradient(135deg, #F0A000, #D08000); }

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How to Play Section */
.how-to-play {
    padding: 5rem 0;
    background: white;
}

.how-to-play h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.instruction {
    text-align: center;
    padding: 2rem;
}

.instruction-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.instruction h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.instruction p {
    color: #666;
    line-height: 1.6;
}

.play-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Game Footer Section */
.game-footer-section {
    padding: 2rem 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.footer-links {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.separator {
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .game-title {
        font-size: 3rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .app-store-buttons {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .game-title {
        font-size: 2.5rem;
    }

    .game-tagline {
        font-size: 1.2rem;
    }

    .btn-play {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .features-section,
    .how-to-play {
        padding: 3rem 0;
    }

    .features-section h2,
    .how-to-play h2 {
        font-size: 2rem;
    }

    .tetris-blocks {
        gap: 0.5rem;
        padding: 1rem;
    }

    .block {
        width: 60px;
        height: 60px;
    }
}
