/* Component Specific Styles */

/* Navbar */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff003c;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ff003c;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #ff003c;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #ff003c, #cc0030);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #ff003c;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #00d0ff;
    box-shadow: 0 0 15px rgba(0, 208, 255, 0.4);
    color: #00d0ff;
    transform: scale(1.05);
}

/* 3D Photorealistic Podium */
.podium-3d-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    height: 450px;
    padding-bottom: 40px;
}

.podium-3d-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 200px;
}

.podium-3d-step.gold { width: 240px; z-index: 3; }
.podium-3d-step.silver { width: 220px; z-index: 2; }
.podium-3d-step.bronze { width: 220px; z-index: 1; }

/* 3D Bases */
.podium-base-wrapper {
    position: absolute;
    bottom: -20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.podium-base-layer-1 {
    width: 110%;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8), inset 0 2px 2px rgba(255,255,255,0.1);
    position: relative;
}

.podium-base-layer-2 {
    width: 95%;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
    box-shadow: 0 5px 10px rgba(0,0,0,0.8), inset 0 2px 2px rgba(255,255,255,0.15);
    margin-top: -15px;
    position: relative;
}

.gold .podium-base-layer-2 { background: linear-gradient(180deg, #3a2a00 0%, #1a1200 100%); }
.silver .podium-base-layer-2 { background: linear-gradient(180deg, #2a2a3a 0%, #11111a 100%); }
.bronze .podium-base-layer-2 { background: linear-gradient(180deg, #3a1a10 0%, #1a0a05 100%); }

/* 3D Main Body */
.podium-body-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
}

.gold .podium-body-wrapper { height: 260px; }
.silver .podium-body-wrapper { height: 200px; }
.bronze .podium-body-wrapper { height: 180px; }

/* Side Pillars */
.podium-pillar {
    width: 25px;
    height: 100%;
    position: relative;
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
}

.podium-pillar.right {
    clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 100%);
}

/* Central Face */
.podium-center-face {
    flex-grow: 1;
    height: 100%;
    position: relative;
    margin: 0 -2px; /* overlap to hide seams */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
}

/* Top Edge Highlights */
.podium-center-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 10;
}

/* Material Colors: Gold */
.gold .podium-pillar { background: linear-gradient(90deg, #7a5c1a 0%, #b8860b 100%); }
.gold .podium-pillar.right { background: linear-gradient(90deg, #b8860b 0%, #5a4208 100%); }
.gold .podium-center-face { background: linear-gradient(180deg, #3a2a00 0%, #1a1200 100%); box-shadow: inset 0 0 30px rgba(0,0,0,0.8); }
.gold .podium-center-face::before { background: linear-gradient(90deg, transparent, #ffdf00, transparent); }

/* Material Colors: Silver */
.silver .podium-pillar { background: linear-gradient(90deg, #667 0%, #aab 100%); }
.silver .podium-pillar.right { background: linear-gradient(90deg, #aab 0%, #445 100%); }
.silver .podium-center-face { background: linear-gradient(180deg, #2a2a3a 0%, #11111a 100%); box-shadow: inset 0 0 30px rgba(0,0,0,0.8); }
.silver .podium-center-face::before { background: linear-gradient(90deg, transparent, #ffffff, transparent); }

/* Material Colors: Bronze */
.bronze .podium-pillar { background: linear-gradient(90deg, #633 0%, #955 100%); }
.bronze .podium-pillar.right { background: linear-gradient(90deg, #955 0%, #422 100%); }
.bronze .podium-center-face { background: linear-gradient(180deg, #3a1a10 0%, #1a0a05 100%); box-shadow: inset 0 0 30px rgba(0,0,0,0.8); }
.bronze .podium-center-face::before { background: linear-gradient(90deg, transparent, #ff9966, transparent); }

/* Avatar Frame */
.podium-avatar-wrapper {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gold .podium-avatar-wrapper { top: -90px; }

.podium-avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #000;
    border: 3px solid;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold .podium-avatar-circle { width: 120px; height: 120px; border-color: #ffd700; border-width: 4px; box-shadow: 0 10px 30px rgba(255,215,0,0.2), inset 0 0 20px rgba(0,0,0,0.9); }
.silver .podium-avatar-circle { border-color: #c0c0c0; }
.bronze .podium-avatar-circle { border-color: #cd7f32; }

/* Sunburst Rank Badge */
.podium-rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: #000;
    z-index: 30;
}

.gold .podium-rank-badge { width: 50px; height: 50px; font-size: 20px; background: linear-gradient(135deg, #fff200, #ff9d00); box-shadow: 0 0 15px rgba(255,215,0,0.8); }
.silver .podium-rank-badge { background: linear-gradient(135deg, #fff, #888); }
.bronze .podium-rank-badge { background: linear-gradient(135deg, #ffb380, #8c4600); color: #fff; }

.podium-avatar-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}

/* Custom Sliders Navigation */
.slider-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255, 0, 60, 0.2);
    border-color: #ff003c;
    color: #ff003c;
}
