/* Game Page Specific Styles */

/* Enhanced Sakura Petals for Game Pages */
.sakura-petals .petal-6,
.sakura-petals .petal-7 {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.5;
    animation: fall 20s infinite linear;
}

.petal-6 { left: 15%; animation-delay: 15s; }
.petal-7 { left: 85%; animation-delay: 18s; }

/* Game Hero Section */
.game-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.9), rgba(221, 160, 221, 0.9), rgba(173, 216, 230, 0.9));
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(157, 78, 221, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.game-info {
    position: relative;
    z-index: 2;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.game-icon-display {
    font-size: 6rem;
    background: var(--gradient-main);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.3);
    animation: gentle-bounce 4s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.game-details {
    flex: 1;
}

.game-details h1 {
    font-family: var(--font-accent);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.game-tagline {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.rating-text {
    color: #888;
    font-weight: 600;
}

.popularity-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6); }
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
    border-color: var(--primary-pink);
}

.feature-icon {
    font-size: 2.5rem;
    background: var(--gradient-card);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-info h4 {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--secondary-purple);
    margin-bottom: 0.3rem;
}

.feature-info p {
    color: #666;
    font-size: 0.95rem;
}

/* Game Play Area */
.game-play-area {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.game-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-section {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.control-section h3 {
    font-family: var(--font-accent);
    color: var(--secondary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.control-btn {
    background: white;
    border: 2px solid var(--primary-pink);
    color: var(--primary-pink);
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.control-btn:hover {
    background: var(--primary-pink);
    color: white;
    transform: translateY(-2px);
}

.jackpot-display {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.jackpot-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.jackpot-display h4 {
    font-family: var(--font-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.jackpot-amount {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.jackpot-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Game Frame */
.game-frame {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 3px solid var(--primary-pink);
}

.frame-header {
    background: var(--gradient-button);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frame-header h2 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin: 0;
}

.frame-controls {
    display: flex;
    gap: 1rem;
}

.frame-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.frame-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #f0f0f0;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Game Stats */
.game-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-info h4 {
    font-family: var(--font-accent);
    color: var(--secondary-purple);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Description */
.game-description {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 240, 248, 0.9), rgba(240, 230, 255, 0.9));
}

.description-content h2 {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: var(--secondary-purple);
    margin-bottom: 2rem;
    text-align: center;
}

.description-content > p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-detail {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 105, 180, 0.1);
}

.feature-detail h3 {
    font-family: var(--font-accent);
    color: var(--secondary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.feature-detail ul {
    list-style: none;
    padding: 0;
}

.feature-detail li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.feature-detail li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
}

.tips-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tips-section h3 {
    font-family: var(--font-accent);
    color: var(--secondary-purple);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-align: center;
}

.tips-list {
    display: grid;
    gap: 1.5rem;
}

.tip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gradient-card);
    border-radius: 15px;
    border-left: 4px solid var(--primary-pink);
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Related Games */
.related-games {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.95);
}

.related-games h2 {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: var(--secondary-purple);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.2);
    border-color: var(--primary-pink);
}

.related-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: related-bounce 3s ease-in-out infinite;
}

.related-card:nth-child(1) .related-icon { animation-delay: 0s; }
.related-card:nth-child(2) .related-icon { animation-delay: 0.5s; }
.related-card:nth-child(3) .related-icon { animation-delay: 1s; }
.related-card:nth-child(4) .related-icon { animation-delay: 1.5s; }

@keyframes related-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.related-card h4 {
    font-family: var(--font-accent);
    color: var(--secondary-purple);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.related-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Design for Game Pages */
@media (max-width: 1200px) {
    .game-container {
        grid-template-columns: 250px 1fr 250px;
    }

    .game-details h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-controls {
        order: 2;
        flex-direction: row;
        justify-content: space-between;
    }

    .game-frame {
        order: 1;
    }

    .game-stats {
        order: 3;
        flex-direction: row;
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .game-icon-display {
        font-size: 4rem;
    }

    .game-details h1 {
        font-size: 2.2rem;
    }

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

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

    .game-controls {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .game-stats {
        flex-direction: column;
    }

    .frame-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .iframe-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .game-hero {
        padding: 2rem 0;
    }

    .game-header {
        padding: 1.5rem;
    }

    .game-details h1 {
        font-size: 1.8rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
