/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px) brightness(0.6);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(15, 16, 20, 0) 0%,
        rgba(15, 16, 20, 0.2) 30%,
        rgba(15, 16, 20, 0.5) 50%,
        rgba(15, 16, 20, 0.75) 70%,
        rgba(15, 16, 20, 0.9) 85%,
        #0f1014 100%);
}

.back-link {
    display: inline-block;
    color: #ff184e;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-link:hover {
    color: #ff4570;
    transform: translateX(-5px);
}

.game-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-top: 120px;
}

/* Game Header Layout - Split Design */
.game-header-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 32px;
    margin-bottom: 50px;
    align-items: start;
}

.game-left-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.game-thumbnail-section {
    width: 100%;
}

.game-detail-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #2a2d35;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.game-detail-thumbnail:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.game-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tabs Container */
.tabs-container {
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 35px;
    border-bottom: 2px solid #2a2d35;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 32px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Oxygen', 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tab-btn:hover {
    color: #ff184e;
    background: rgba(255, 24, 78, 0.05);
}

.tab-btn.active {
    color: #ff184e;
    border-bottom-color: #ff184e;
    background: rgba(255, 24, 78, 0.08);
}

.tabs-content {
    padding: 20px 0;
}

.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tab-panel.active {
    display: block;
    animation: fadeInOnly 0.2s ease-in-out forwards;
}

@keyframes fadeInOnly {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d1d5db;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.game-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.2;
}

.game-meta-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-meta-list .meta-item {
    padding: 16px 20px;
    background: rgba(26, 29, 35, 0.6);
    border-radius: 10px;
    border: 1px solid #2a2d35;
    transition: all 0.3s ease;
}

.game-meta-list .meta-item:hover {
    background: rgba(26, 29, 35, 0.9);
}

.meta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    color: #9ca3af;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.meta-value {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
    transform: skewX(-12deg);
    text-align: center;
    user-select: none;
    transition: all 0.2s ease-in-out;
}

.status-badge span {
    display: inline-block;
    transform: skewX(12deg);
}

.status-badge.status-cracked {
    background: linear-gradient(145deg, #0D7C59, #10A379);
    color: #B8FFE3;
    box-shadow:
        inset 0 0 10px rgba(255, 255, 255, 0.05),
        0 4px 10px rgba(16, 185, 129, 0.25);
    text-shadow:
        0 0 1px rgba(184, 255, 227, 0.8),
        0 0 12px rgba(128, 255, 212, 0.6);
}

.status-badge.status-cracked:hover {
    background: linear-gradient(145deg, #10A379, #14BF8A);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.07),
        0 6px 16px rgba(16, 185, 129, 0.4);
    transform: skewX(-12deg) translateY(-1px);
}

.status-badge.status-uncracked {
    background: linear-gradient(145deg, #B91C1C, #DC2626);
    color: #FFB8B8;
    box-shadow:
        inset 0 0 10px rgba(255, 255, 255, 0.05),
        0 4px 10px rgba(239, 68, 68, 0.25);
    text-shadow:
        0 0 1px rgba(255, 184, 184, 0.8),
        0 0 12px rgba(255, 128, 128, 0.6);
}

.status-badge.status-uncracked:hover {
    background: linear-gradient(145deg, #DC2626, #EF4444);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.07),
        0 6px 16px rgba(239, 68, 68, 0.4);
    transform: skewX(-12deg) translateY(-1px);
}

.status-badge.status-upcoming {
    background: linear-gradient(145deg, #5B2C9D, #7A3FBF);
    color: #E3B8FF;
    box-shadow:
        inset 0 0 10px rgba(255, 255, 255, 0.05),
        0 4px 10px rgba(124, 58, 237, 0.25);
    text-shadow:
        0 0 1px rgba(226, 166, 255, 0.8),
        0 0 12px rgba(194, 128, 255, 0.6);
}

.status-badge.status-upcoming:hover {
    background: linear-gradient(145deg, #6E38B3, #8B52D4);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.07),
        0 6px 16px rgba(138, 58, 237, 0.4);
    transform: skewX(-12deg) translateY(-1px);
}

.game-short-description {
    padding: 20px 24px;
    background: rgba(26, 29, 35, 0.4);
    border-radius: 10px;
    border-left: 3px solid #ff184e;
    border: 1px solid #2a2d35;
    border-left: 3px solid #ff184e;
}

.game-short-description p {
    color: #d1d5db;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 25px;
    border-bottom: 2px solid #ff184e;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #2a2d35;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #1a1d23;
    aspect-ratio: 16 / 9;
}

.gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-container {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #2a2d35;
    max-width: 700px;
    margin: 0 auto 20px;
    background: #1a1d23;
}

.video-container iframe {
    width: 100%;
    height: 350px;
    display: block;
}

/* System Requirements */
.requirements-section {
    margin-bottom: 50px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.requirement-box {
    background: transparent;
    border: none;
    padding: 0;
}

.requirement-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff184e;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff184e;
}

.requirement-item {
    margin-bottom: 14px;
    padding: 14px 18px;
    background: rgba(26, 29, 35, 0.6);
    border-radius: 8px;
    border-left: 3px solid #ff184e;
    border: 1px solid #2a2d35;
    border-left: 3px solid #ff184e;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background: rgba(26, 29, 35, 0.9);
    border-left-color: #ff4570;
    transform: translateX(4px);
}

.requirement-label {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.requirement-value {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 968px) {
    .game-header-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .game-left-section {
        position: relative;
        top: 0;
    }

    .game-detail-thumbnail {
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .game-detail-container {
        padding-top: 80px;
    }

    .game-detail-title {
        font-size: 2rem;
    }

    .game-meta-list .meta-item {
        padding: 12px 16px;
    }

    .meta-label {
        font-size: 0.8rem;
    }

    .meta-value {
        font-size: 1rem;
    }

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

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

    .video-container iframe {
        height: 250px;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 100px 20px;
    color: #888;
    font-size: 1.5rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* No Game Found */
.no-game {
    text-align: center;
    padding: 100px 20px;
}

.no-game h2 {
    color: #ef4444;
    font-size: 2rem;
    margin-bottom: 20px;
}

.no-game p {
    color: #9ca3af;
    font-size: 1.2rem;
}

.no-game a {
    color: #ff184e;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.no-game a:hover {
    color: #ff4570;
    text-decoration: underline;
}

/* Footer Override for Detail Page */
footer .disclaimer {
    margin-bottom: 20px;
}

footer .disclaimer h3 {
    display: none;
}

footer .disclaimer p {
    color: var(--text-secondary, #9ca3af);
    line-height: 1.7;
    font-size: 0.85rem;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 15px;
    text-align: center;
}

footer .copyright {
    text-align: center;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Steam Button */
.steam-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(26, 29, 35, 0.6);
    border: 2px solid rgba(102, 192, 244, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.steam-button:hover {
    background: rgba(102, 192, 244, 0.15);
    border-color: #66c0f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 192, 244, 0.3);
}

.steam-button img {
    height: 35px;
    width: auto;
    object-fit: contain;
    display: block;
}

.steam-button span {
    color: #66c0f4;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.steam-button:hover span {
    color: #90d7ff;
}

.steam-button:active {
    transform: translateY(0);
}

/* Action Buttons (Wishlist & Watch) */
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(26, 29, 35, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button:hover {
    background: rgba(26, 29, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
}

.action-button.wishlist-btn[data-in-wishlist="true"] {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.action-button.wishlist-btn[data-in-wishlist="true"]:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.action-button.watch-btn[data-is-watching="true"] {
    border-color: rgba(168, 139, 250, 0.5);
    background: rgba(168, 139, 250, 0.1);
}

.action-button.watch-btn[data-is-watching="true"]:hover {
    border-color: #a78bfa;
    background: rgba(168, 139, 250, 0.2);
}
