/* ===================================
   TRACK BATTLE STYLES
   =================================== */

:root {
    --neon-cyan: #00BCD4;
    --neon-green: #00ff41;
}

/* Track Battle Hero */
.track-battle-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    text-align: center;
    overflow: hidden;
    margin-top: 82px;
}

.track-battle-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.track-battle-hero .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--black), transparent);
    z-index: 1;
}

.track-battle-hero .hero-content {
    position: relative;
    z-index: 2;
}

.track-battle-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: 4px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    text-shadow: 
        0 0 20px rgba(0, 188, 212, 0.8),
        0 0 40px rgba(0, 188, 212, 0.6);
}

.track-battle-title i {
    color: var(--neon-cyan);
    text-shadow: 0 0 30px rgba(0, 188, 212, 1);
}

.track-battle-subtitle {
    font-size: 20px;
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

/* Track Battle Section */
.track-battle-section {
    padding: 100px 0;
    background: var(--black);
}

.battle-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 20px;
    text-align: center;
}

.battle-loading i {
    font-size: 48px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.8);
}

.battle-loading p {
    font-size: 18px;
    color: var(--off-white);
}

.no-battle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 20px;
    text-align: center;
}

.no-battle i {
    font-size: 64px;
    color: var(--neon-cyan);
    text-shadow: 0 0 30px rgba(0, 188, 212, 0.6);
}

.no-battle h3 {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 2px;
    color: var(--white);
}

.no-battle p {
    font-size: 16px;
    color: var(--off-white);
}

/* Battle Arena */
.battle-arena {
    max-width: 1200px;
    margin: 0 auto;
}

.battle-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.3);
}

.battle-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}

.battle-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.total-votes {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--neon-cyan);
    font-weight: 700;
}

.total-votes i {
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.6);
}

/* Battle Grid */
.battle-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

/* Keep horizontal layout on all screens */
@media (max-width: 992px) {
    .battle-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .battle-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .battle-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }
}

/* Track Card */
.track-card {
    background: var(--medium-gray);
    border: 3px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(0, 188, 212, 0.5);
}

/* Responsive card sizing */
@media (max-width: 992px) {
    .track-card {
        padding: 20px;
        border-width: 2px;
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .track-card {
        padding: 15px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .track-card {
        padding: 10px;
        border-width: 1px;
        border-radius: 10px;
    }
}

.track-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
}

@media (max-width: 992px) {
    .track-cover {
        margin-bottom: 15px;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .track-cover {
        margin-bottom: 12px;
        border-width: 1px;
    }
}

@media (max-width: 480px) {
    .track-cover {
        margin-bottom: 8px;
    }
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 188, 212, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.8);
}

.play-button i {
    font-size: 32px;
    color: var(--black);
    padding-left: 5px;
}

@media (max-width: 992px) {
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 24px;
        padding-left: 3px;
    }
}

@media (max-width: 768px) {
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 20px;
        padding-left: 3px;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 40px;
        height: 40px;
    }
    
    .play-button i {
        font-size: 16px;
        padding-left: 2px;
    }
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 50px rgba(0, 188, 212, 1);
}

.play-button.playing {
    background: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
}

.play-button.playing i::before {
    content: '\f04c';
}

.track-info {
    text-align: center;
    margin-bottom: 25px;
}

.track-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.6);
    line-height: 1.2;
}

.track-artist {
    font-size: 18px;
    color: var(--neon-green);
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .track-info {
        margin-bottom: 15px;
    }
    
    .track-title {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }
    
    .track-artist {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .track-info {
        margin-bottom: 12px;
    }
    
    .track-title {
        font-size: 16px;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    .track-artist {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .track-info {
        margin-bottom: 10px;
    }
    
    .track-title {
        font-size: 14px;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
    }
    
    .track-artist {
        font-size: 11px;
    }
}

/* Vote Section */
.vote-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 992px) {
    .vote-section {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .vote-section {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .vote-section {
        gap: 8px;
    }
}

.vote-btn {
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    color: var(--black);
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    font-family: var(--font-display);
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 
        0 0 30px rgba(0, 188, 212, 0.6),
        0 5px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 992px) {
    .vote-btn {
        padding: 12px 20px;
        font-size: 14px;
        letter-spacing: 1px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .vote-btn {
        padding: 10px 15px;
        font-size: 12px;
        letter-spacing: 0.5px;
        gap: 5px;
        border-radius: 25px;
    }
    
    .vote-btn i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .vote-btn {
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.5px;
        gap: 4px;
    }
    
    .vote-btn i {
        font-size: 10px;
    }
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 50px rgba(0, 188, 212, 1),
        0 8px 30px rgba(0, 0, 0, 0.7);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vote-btn.voted {
    background: rgba(0, 188, 212, 0.3);
    color: var(--white);
    border: 2px solid var(--neon-cyan);
}

/* Vote Percentage */
.vote-percentage {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.percentage-bar {
    width: 100%;
    height: 30px;
    background: var(--black);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
}

.percentage-text {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
}

@media (max-width: 992px) {
    .vote-percentage {
        gap: 6px;
    }
    
    .percentage-bar {
        height: 20px;
        border-width: 1px;
        border-radius: 10px;
    }
    
    .percentage-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .vote-percentage {
        gap: 5px;
    }
    
    .percentage-bar {
        height: 16px;
        border-radius: 8px;
    }
    
    .percentage-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .vote-percentage {
        gap: 4px;
    }
    
    .percentage-bar {
        height: 12px;
        border-radius: 6px;
    }
    
    .percentage-text {
        font-size: 12px;
    }
}

/* VS Divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-circle {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    border-radius: 50%;
    box-shadow: 
        0 0 40px rgba(0, 188, 212, 0.8),
        0 0 60px rgba(0, 255, 65, 0.6);
    animation: vsGlow 2s ease-in-out infinite alternate;
}

.vs-circle span {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .vs-circle {
        width: 70px;
        height: 70px;
    }
    
    .vs-circle span {
        font-size: 24px;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .vs-circle {
        width: 50px;
        height: 50px;
    }
    
    .vs-circle span {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .vs-circle {
        width: 40px;
        height: 40px;
    }
    
    .vs-circle span {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

@keyframes vsGlow {
    0% {
        box-shadow: 0 0 40px rgba(0, 188, 212, 0.8), 0 0 60px rgba(0, 255, 65, 0.6);
    }
    100% {
        box-shadow: 0 0 60px rgba(0, 188, 212, 1), 0 0 80px rgba(0, 255, 65, 0.8);
    }
}

/* Vote Status */
.vote-status {
    text-align: center;
    padding: 25px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--neon-green);
    border-radius: 15px;
    margin-top: 30px;
}

.vote-status i {
    font-size: 48px;
    color: var(--neon-green);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

.vote-status p {
    font-size: 20px;
    color: var(--white);
    font-weight: 700;
    margin: 0;
}

.vote-status span {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.auth-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--medium-gray);
    border: 3px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 60px rgba(0, 188, 212, 0.6);
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.auth-modal-close:hover {
    background: var(--neon-cyan);
    color: var(--black);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.8);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 188, 212, 0.3);
}

.auth-modal-header i {
    font-size: 48px;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.8);
}

.auth-modal-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}

.auth-modal-header p {
    font-size: 14px;
    color: var(--off-white);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-toggle {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-toggle p {
    margin: 10px 0;
    color: var(--off-white);
    font-size: 14px;
}

.auth-toggle a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-toggle a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.form-status {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.form-status.success {
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.form-status.error {
    background: rgba(255, 0, 68, 0.1);
    border: 2px solid var(--neon-red);
    color: var(--neon-red);
}

/* Responsive - General */
@media (max-width: 768px) {
    .track-battle-hero {
        padding: 150px 0 80px;
    }

    .track-battle-title {
        font-size: 36px;
        flex-direction: column;
        gap: 10px;
    }

    .track-battle-subtitle {
        font-size: 16px;
    }

    .track-battle-section {
        padding: 60px 20px;
    }

    .battle-header {
        margin-bottom: 40px;
    }

    .battle-header h2 {
        font-size: 24px;
    }

    .auth-modal-content {
        width: 95%;
        padding: 25px;
    }

    .auth-modal-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .track-battle-hero {
        padding: 130px 0 60px;
    }
    
    .track-battle-title {
        font-size: 28px;
    }
    
    .track-battle-subtitle {
        font-size: 14px;
    }
    
    .track-battle-section {
        padding: 40px 10px;
    }
    
    .battle-header {
        margin-bottom: 30px;
    }
    
    .battle-header h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .total-votes {
        font-size: 14px;
    }
    
    .total-votes i {
        font-size: 16px;
    }
}
