/**
 * Game Detail Page Styles
 * Single Game View with Tabs
 * @package team-exciting
 * @version 1.0.0
 */

/* ===================================
   GAME HEADER SECTION
   =================================== */

.trn-game-detail-page {
    min-height: 100vh;
}

.trn-game-header {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    background-size: cover;
    background-position: center;
    padding: 80px 0 60px;
    margin-bottom: 50px;
    overflow: hidden;
}

.trn-game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 50, 51, 0.15), rgba(56, 255, 30, 0.15));
    animation: gradientShift 10s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.trn-game-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.trn-game-header-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 50px;
}

.trn-game-icon {
    width: 250px;
    height: 250px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(37, 37, 37, 0.95));
    border-radius: 20px;
    border: 3px solid rgba(255, 50, 51, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 50, 51, 0.2);
    transition: all 0.5s ease;
}

.trn-game-icon:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(255, 50, 51, 0.4);
}

.trn-game-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 50, 51, 0.5));
}

.trn-game-header-info {
    flex: 1;
}

.trn-game-title {
    font-size: 54px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        0 0 20px rgba(255, 50, 51, 0.6),
        0 0 40px rgba(255, 50, 51, 0.4);
    animation: titleGlow 3s ease infinite;
}

.trn-game-meta {
    margin-bottom: 30px;
}

.trn-game-platform {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 50, 51, 0.2);
    border: 1px solid rgba(255, 50, 51, 0.4);
    padding: 12px 24px;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trn-game-stats-quick {
    display: flex;
    gap: 40px;
}

.trn-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trn-stat-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--trn-primary);
    text-shadow: 0 0 20px rgba(255, 50, 51, 0.6);
}

.trn-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===================================
   TAB NAVIGATION
   =================================== */

.trn-game-tabs {
    margin: 40px 0;
}

.trn-game-tabs .trn-nav {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
}

.trn-game-tabs .trn-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    background: transparent;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.trn-game-tabs .trn-nav-link:hover {
    background: rgba(255, 50, 51, 0.1);
    color: var(--trn-primary);
    border-color: rgba(255, 50, 51, 0.3);
}

.trn-game-tabs .trn-nav-link.active {
    background: linear-gradient(145deg, rgba(255, 50, 51, 0.15), rgba(255, 50, 51, 0.05));
    color: var(--trn-primary);
    border-color: var(--trn-primary);
    border-bottom-color: transparent;
    box-shadow: 0 -5px 20px rgba(255, 50, 51, 0.3);
}

/* ===================================
   TAB CONTENT
   =================================== */

.trn-game-content {
    padding-bottom: 80px;
}

.trn-tab-content {
    animation: fadeIn 0.5s ease;
}

.trn-tab-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   LADDERS & TOURNAMENTS GRID
   =================================== */

.trn-ladders-grid,
.trn-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.trn-ladder-card,
.trn-tournament-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(37, 37, 37, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trn-ladder-card::before,
.trn-tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--trn-primary), var(--trn-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.trn-ladder-card:hover,
.trn-tournament-card:hover {
    transform: translateY(-8px);
    border-color: var(--trn-primary);
    box-shadow:
        0 15px 40px rgba(255, 50, 51, 0.4),
        0 0 60px rgba(255, 50, 51, 0.2);
}

.trn-ladder-card:hover::before,
.trn-tournament-card:hover::before {
    opacity: 0.05;
}

.trn-ladder-card h3,
.trn-tournament-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.trn-ladder-card h3 a,
.trn-tournament-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trn-ladder-card:hover h3 a,
.trn-tournament-card:hover h3 a {
    color: var(--trn-primary);
}

.trn-ladder-info,
.trn-tournament-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.trn-ladder-info span,
.trn-tournament-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trn-tournament-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.trn-tournament-status.status-open {
    background: linear-gradient(135deg, var(--trn-secondary), #5fff3a);
    color: #000;
}

.trn-tournament-status.status-live {
    background: linear-gradient(135deg, var(--trn-primary), #ff6d6d);
    color: #fff;
    animation: pulse 2s ease infinite;
}

.trn-tournament-status.status-complete {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
    opacity: 0.7;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.trn-game-about {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(37, 37, 37, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 40px;
    margin-top: 30px;
}

.trn-game-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.trn-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trn-detail-item strong {
    color: var(--trn-primary);
    font-size: 16px;
    font-weight: 700;
}

.trn-detail-item span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.trn-game-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===================================
   NO RESULTS MESSAGE
   =================================== */

.trn-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .trn-game-header-content {
        flex-direction: column;
        text-align: center;
    }

    .trn-game-icon {
        width: 200px;
        height: 200px;
    }

    .trn-game-title {
        font-size: 42px;
    }

    .trn-game-stats-quick {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .trn-game-header {
        padding: 60px 0 40px;
    }

    .trn-game-icon {
        width: 150px;
        height: 150px;
        padding: 20px;
    }

    .trn-game-title {
        font-size: 32px;
    }

    .trn-stat-value {
        font-size: 36px;
    }

    .trn-game-tabs .trn-nav {
        flex-direction: column;
        gap: 10px;
    }

    .trn-game-tabs .trn-nav-link {
        border-radius: 12px;
        border: 2px solid transparent;
    }

    .trn-game-tabs .trn-nav-link.active {
        border-color: var(--trn-primary);
    }

    .trn-ladders-grid,
    .trn-tournaments-grid {
        grid-template-columns: 1fr;
    }

    .trn-game-actions {
        flex-direction: column;
    }
}
