/* --- COMPONENTS --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.glass-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.nav-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-btn.active {
    color: #fff;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

.btn-login {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-login:hover::after {
    left: 100%;
}

.btn-login:hover {
    background: var(--accent-hover) !important;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.6);
}

/* Team Grid */
.team-grid-container h3 {
    text-align: center;
    color: #fff;
    border-bottom: 1px solid #333;
    max-width: 300px;
    margin: 40px auto 20px auto;
    padding-bottom: 5px;
    font-size: 1.8rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.team-head {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    background: #000;
    border: 4px solid var(--rank-color);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.team-card:hover .team-head {
    transform: scale(1.05) rotate(2deg);
}

.team-card {
    text-align: center;
    padding: 35px 25px;
    cursor: pointer;
    border-bottom: 4px solid var(--rank-color);
}

.team-card h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

/* Profile View */
.profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding: 30px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
}

.profile-main {
    padding: 40px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.profile-info-card {
    padding: 25px;
    border-left: 3px solid var(--accent);
}

.profile-tab {
    transition: all 0.3s;
    border-bottom: 3px solid transparent !important;
    opacity: 0.6;
}

.profile-tab:hover {
    opacity: 1;
}

.profile-tab.active {
    color: #fff !important;
    opacity: 1;
    border-bottom: 3px solid var(--accent) !important;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

/* LabyMod & Skin Viewer */
.laby-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #050507;
}

.laby-iframe {
    position: absolute;
    width: 500%;
    height: 500%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    border: none;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.laby-iframe.loaded {
    opacity: 1;
}

#skin-container canvas {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Gamemode Detail */
.gm-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.gm-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.gm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* News */
.news-filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 40px;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: #888;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.filter-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

/* Login Modal */
#loginModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}