/* Detail Page Specific Styles */

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Game Header */
.game-header {
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(20,20,20,0.9));
}

.game-header-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.game-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

.game-meta h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.meta-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cat-tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.rating-tag {
    color: #FFD700;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.secondary-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Wiki Content */
.game-wiki {
    padding: 0;
    overflow: hidden;
}

.wiki-nav {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
    padding: 0 2rem;
}

.wiki-nav a {
    padding: 1rem 1.5rem;
    min-width: 64px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.wiki-nav-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wiki-nav a:hover, .wiki-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255,255,255,0.02);
}

.wiki-content {
    padding: 2rem;
}

.wiki-section {
    margin-bottom: 3rem;
}

.wiki-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.rich-text {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 1.05rem;
}

.rich-text p {
    margin-bottom: 1rem;
}

.rich-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.rich-text li {
    margin-bottom: 0.5rem;
}

.rich-text strong {
    color: white;
}

.highlight-box {
    background: rgba(112, 0, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(112, 0, 255, 0.1);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-question {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-muted);
}

/* Sidebar */
.sidebar-widget {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.mini-games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-game-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.mini-game-card:hover {
    background: rgba(255,255,255,0.05);
}

.mini-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.mini-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .game-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .meta-tags, .action-buttons {
        justify-content: center;
    }

    .wiki-nav {
        justify-content: space-between;
        padding: 0 0.5rem;
    }

    .wiki-nav a {
        flex: 1;
        min-width: 0;
        padding: 0.9rem 0.25rem;
    }
}
