/* Epic Game Page Styles - Brainrot Edition */
.game-page {
    padding: 2.5rem 0;
    min-height: calc(100vh - 200px);
}

.game-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.game-page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-ocean);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.game-page-description {
    font-size: 1.3rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
    font-weight: 500;
}

.game-container {
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-ocean);
    opacity: 0.03;
    pointer-events: none;
}

#gameCanvas {
    max-width: 100%;
    border: 3px solid rgba(0, 212, 255, 0.4);
    border-radius: 16px;
    background: #000;
    display: block;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

#gameCanvas:hover {
    transform: scale(1.01);
    border-color: var(--accent);
}

.game-controls {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.control-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-fire);
    color: var(--text-main);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.control-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-glow-hover), var(--shadow-lg);
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.game-info-section {
    background: var(--bg-card);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.4s both;
}

.game-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.game-info-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.game-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--gradient-fire);
    border-radius: 10px;
}

.game-info-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-info-section h3::before {
    content: '▶';
    color: var(--accent);
    font-size: 0.8em;
}

.game-info-section p {
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.game-info-section ul {
    list-style: none;
    color: var(--text-dim);
    line-height: 2;
    padding-left: 0;
}

.game-info-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1.05rem;
}

.game-info-section ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2em;
    line-height: 1;
}

.related-games {
    margin-top: 4rem;
    animation: fadeInUp 1.2s ease 0.6s both;
}

.related-games h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-left: 1.5rem;
}

.related-games h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background: var(--gradient-ocean);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Mobile Responsive - Game Page */
@media (max-width: 1024px) {
    .game-page-title {
        font-size: 2.5rem;
    }
    
    .game-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .game-page {
        padding: 2rem 0;
    }

    .game-page-title {
        font-size: 2.2rem;
    }

    .game-page-description {
        font-size: 1.1rem;
    }

    .game-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    #gameCanvas {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .control-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .game-controls {
        gap: 1rem;
    }

    .game-info-section {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .game-info-section h2 {
        font-size: 1.8rem;
    }
    
    .game-info-section h3 {
        font-size: 1.3rem;
    }
    
    .related-games h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .game-page-title {
        font-size: 1.75rem;
    }
    
    .game-page-description {
        font-size: 1rem;
    }
    
    .game-container {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .control-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .game-info-section {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .game-info-section h2 {
        font-size: 1.5rem;
    }
    
    .game-info-section h3 {
        font-size: 1.2rem;
    }
    
    .game-info-section p,
    .game-info-section ul li {
        font-size: 1rem;
    }
    
    .related-games h2 {
        font-size: 1.5rem;
    }
}

/* Minecraft Clicker Specific Styles */
.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    z-index: 10;
}

.stats-panel {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    pointer-events: all;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.stat-value {
    color: #00d4ff;
    font-weight: 700;
    font-size: 1.1rem;
}

.upgrades-panel {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    pointer-events: all;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.upgrades-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: 700;
}

.upgrades-panel h3::before {
    display: none;
}

.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upgrade-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.upgrade-item.affordable {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.1);
}

.upgrade-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.upgrade-info {
    flex: 1;
}

.upgrade-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.upgrade-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.upgrade-btn {
    background: var(--gradient-fire);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: all;
}

.upgrade-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
}

.upgrade-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.2);
}

.controls-panel {
    display: flex;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    pointer-events: all;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Scrollbar styling for upgrades panel */
.upgrades-panel::-webkit-scrollbar {
    width: 8px;
}

.upgrades-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.upgrades-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.6);
    border-radius: 4px;
}

.upgrades-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

/* Game Description Section Specific */
.game-description {
    background: var(--bg-card);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.game-description::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.game-description h2,
.game-description h3 {
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.game-description h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0;
}

.game-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-description h3::before {
    content: '▶';
    color: var(--accent);
    font-size: 0.8em;
}

.game-description p {
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.game-description ul {
    list-style: none;
    color: var(--text-dim);
    line-height: 2;
    padding-left: 0;
}

.game-description ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1.05rem;
}

.game-description ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2em;
    line-height: 1;
}

/* FAQ Section */
.game-faq {
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.game-faq h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    font-weight: 800;
}

.game-faq dl {
    margin: 0;
}

.game-faq dt {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-faq dt:first-child {
    margin-top: 0;
}

.game-faq dd {
    color: var(--text-dim);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Mobile Responsive - Minecraft Clicker */
@media (max-width: 768px) {
    #gameCanvas {
        max-width: 100%;
    }
    
    .game-ui {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .stats-panel,
    .upgrades-panel,
    .controls-panel {
        padding: 1rem;
    }
    
    .upgrades-panel {
        max-height: 200px;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #gameCanvas {
        max-width: 100%;
    }
    
    .stats-panel,
    .upgrades-panel,
    .controls-panel {
        padding: 0.75rem;
    }
    
    .upgrades-panel h3 {
        font-size: 1rem;
    }
    
    .upgrade-name {
        font-size: 0.85rem;
    }
    
    .upgrade-description {
        font-size: 0.75rem;
    }
    
    .upgrade-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}
