/* Game Page Styles - Desktop First */
.game-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-button {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.game-header h1 {
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.desktop-warning {
    background: var(--gradient-secondary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    font-weight: bold;
}

.game-embed {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.game-iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.tall-ratio .game-iframe {
    max-height: 80vh;
}

.focus-instructions {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.focus-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.focus-button:hover {
    background: #3a5985;
    transform: translateY(-2px);
}

.game-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.game-info h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.game-info p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.game-info ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.game-info li {
    margin-bottom: 0.7rem;
    line-height: 1.5;
    position: relative;
}

.game-info li::before {
    content: '🎮';
    position: absolute;
    left: -1.5rem;
}

.itch-link {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    margin-top: 1rem;
}

.itch-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Game-specific adjustments */
.game-embed.tall-ratio {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Share Button Styles */
.share-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.share-container h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.share-buttons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition); /* Uses your existing transition var */
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Platform Colors */
.share-btn.twitter { background: #000000; }
.share-btn.facebook { background: #1877F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.copy-link { background: var(--text-light); }
.share-btn.copied { background: var(--primary-color); }

/* Tooltip for Copy Button */
.tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.share-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive Portrait Styles (for Pacman) */
.game-embed.responsive-portrait {
    max-width: 450px; /* Limits size on desktop so it looks good */
    margin: 0 auto 2rem;
    padding: 1rem; /* Reduce padding slightly for mobile focus */
}

.aspect-ratio-container {
    position: relative;
    width: 100%;
    padding-bottom: 175%; /* 480px height / 320px width = 150% ratio */
    background: #000; /* Background color while loading */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.aspect-ratio-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .game-embed.responsive-portrait {
        max-width: 100%;
        padding: 0.5rem;
    }
}
