/* ============================================================
   archivesd3mleague.css — الأنماط الخاصة بصفحة archivesd3mleague.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

/* ============================================================
   archivesd3mleague.css — الأنماط الخاصة بصفحة archivesd3mleague.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

:root {
    --bg-void: #050508;
    --glass-bg: rgba(15, 15, 20, 0.8);
    --gold: #FFD700;
    --gold-glow: 0 0 20px rgba(255, 215, 0, 0.5);
    --silver: #C0C0C0;
    --silver-glow: 0 0 20px rgba(192, 192, 192, 0.5);
    --bronze: #CD7F32;
    --bronze-glow: 0 0 20px rgba(205, 127, 50, 0.5);
}

[data-theme="light"] {
    --bg-void: #f0f0f0;
    --glass-bg: rgba(255, 255, 255, 0.9);
}

h1, h2, h3, h4, h5, h6, p, span, a, li, td, th, div {
    letter-spacing: normal !important;
}

.page-header {
    padding: 140px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-text), 0 0 40px rgba(0, 212, 255, 0.4);
}

.page-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
}

.tabs-container {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 14px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab-btn:hover {
    border-color: var(--border-accent);
    color: var(--neon-cyan);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 139, 139, 0.2));
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.coming-soon-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 100px;
}

.coming-soon-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
}

.coming-soon-text {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--glow-text);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { text-shadow: var(--glow-text); opacity: 1; }
    50% { text-shadow: var(--glow-text), 0 0 30px rgba(0, 212, 255, 0.8); opacity: 0.8; }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-neon);
}

.panel-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 25px;
    text-align: center;
}

.date-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 139, 139, 0.1));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
}

.date-card svg {
    width: 24px;
    height: 24px;
    color: var(--neon-cyan);
}

.date-card span {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-normal);
}

.podium-item:hover {
    transform: translateY(-10px);
}

.podium-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px;
    border: 3px solid;
}

.podium-item.gold .podium-icon {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
    background: rgba(255, 215, 0, 0.1);
}

.podium-item.silver .podium-icon {
    border-color: var(--silver);
    box-shadow: var(--silver-glow);
    background: rgba(192, 192, 192, 0.1);
}

.podium-item.bronze .podium-icon {
    border-color: var(--bronze);
    box-shadow: var(--bronze-glow);
    background: rgba(205, 127, 50, 0.1);
}

.podium-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.podium-item.gold .podium-name {
    color: var(--gold);
}

.podium-item.silver .podium-name {
    color: var(--silver);
}

.podium-item.bronze .podium-name {
    color: var(--bronze);
}

.podium-prize {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    padding: 10px 25px;
    border-radius: var(--radius-xl);
}

.podium-item.gold .podium-prize {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.podium-item.silver .podium-prize {
    background: rgba(192, 192, 192, 0.2);
    color: var(--silver);
    border: 1px solid var(--silver);
}

.podium-item.bronze .podium-prize {
    background: rgba(205, 127, 50, 0.2);
    color: var(--bronze);
    border: 1px solid var(--bronze);
}

.podium-rank {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.podium-base {
    width: 140px;
    margin-top: 15px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.podium-item.gold .podium-base {
    height: 110px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border: 1px solid var(--gold);
    border-bottom: none;
}

.podium-item.silver .podium-base {
    height: 80px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.1));
    border: 1px solid var(--silver);
    border-bottom: none;
}

.podium-item.bronze .podium-base {
    height: 55px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.1));
    border: 1px solid var(--bronze);
    border-bottom: none;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table th, .rankings-table td {
    padding: 15px 20px;
    text-align: right;
    border-bottom: 1px solid var(--border-subtle);
}

.rankings-table th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 0.95rem;
}

.rankings-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.rankings-table .rank {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-cyan);
}

.rankings-table .rank-1 {
    color: var(--gold);
}

.rankings-table .rank-2 {
    color: var(--silver);
}

.rankings-table .rank-3 {
    color: var(--bronze);
}

.rankings-table .team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rankings-table .rating {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.class-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 25px;
}

.class-card h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-accent);
}

.class-card ul {
    list-style: none;
}

.class-card li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.class-card li:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-cyan);
    transform: translateX(-5px);
}

.bracket-image {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-accent);
    box-shadow: var(--glow-cyan);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.bracket-image:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-cyan-intense);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: all var(--transition-normal);
}

.team-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

.team-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.team-card-header img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 2px solid var(--border-accent);
    object-fit: cover;
}

.team-card-header h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin: 0;
}

.team-card ul {
    list-style: none;
}

.team-card li {
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.team-card li:last-child {
    border-bottom: none;
}

.team-card li::before {
    content: '•';
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.team-card .sub {
    color: #ff9f43;
    font-size: 1rem;
    font-weight: 600;
}

.team-card .sub::before {
    content: '↳';
    color: #ff9f43;
}

/* Team Logo styling for tables and lists */

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid var(--border-accent);
    object-fit: cover;
    vertical-align: middle;
}

.team-logo-sm {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid var(--border-accent);
    object-fit: cover;
    vertical-align: middle;
}

.team-with-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rankings-table .team-with-logo img {
    width: 50px;
    height: 50px;
}

.class-card .team-with-logo img {
    width: 45px;
    height: 45px;
}

.class-card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.class-card .rating {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* Podium logo styling */

.podium-logo {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    border: 3px solid;
    object-fit: cover;
    margin-bottom: 15px;
}

.podium-item.gold .podium-logo {
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}

.podium-item.silver .podium-logo {
    border-color: var(--silver);
    box-shadow: var(--silver-glow);
}

.podium-item.bronze .podium-logo {
    border-color: var(--bronze);
    box-shadow: var(--bronze-glow);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-accent);
    box-shadow: var(--glow-cyan);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-label {
    text-align: center;
    margin-top: 15px;
    font-weight: 700;
    color: var(--text-secondary);
}

.certificate-container {
    text-align: center;
}

.certificate-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-accent);
    box-shadow: var(--glow-cyan);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.certificate-image:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-cyan-intense);
}

.social-link {
    font-size: 1.2rem;
}

.social-link.kick:hover {
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.4);
}

.social-link.twitch:hover {
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
}

.social-link.youtube:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.social-link.tiktok:hover {
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.4);
}

.social-link.instagram:hover {
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.4);
}

.social-link.twitter:hover {
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.4);
}

.social-link.discord:hover {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

::-webkit-scrollbar {
    height: 10px;
}

.loader.hidden {
    pointer-events: none;
}

@media (max-width: 1024px) {
    .class-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 30px;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
    }

    .podium-item {
        width: 100%;
        max-width: 200px;
    }

    .podium-item.gold {
        order: 1;
    }

    .podium-item.silver {
        order: 2;
    }

    .podium-item.bronze {
        order: 3;
    }

    .podium-base {
        width: 100%;
        height: 30px !important;
    }

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

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

@media (max-width: 480px) {
    .glass-panel {
        padding: 20px;
    }
}

.content-section {
    padding-bottom: 40px;
}
