/*
 * TopVelocity Player Portal styles
 * Extracted from includes/PlayerPortal.php::render_landing_page()
 * Phase 2.1 — inline <style> -> external stylesheet (no behavior change)
 */

* { box-sizing: border-box; margin: 0; padding: 0; }
.tv-carousel-track::-webkit-scrollbar { display: none; }
.tv-carousel-track { -ms-overflow-style: none; scrollbar-width: none; }
[style*="overflow-x: auto"]::-webkit-scrollbar { display: none; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* Loading screen */
.loading-screen {
    text-align: center;
    color: white;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #c41e3a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tv-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(1.4); } }
.loading-screen p { color: #9ca3af; font-size: 14px; }

/* Landing content - hidden by default */
.landing-container {
    text-align: center;
    max-width: 440px;
    width: 100%;
    display: none;
}
.landing-logo {
    margin-bottom: 30px;
}
.landing-logo img {
    height: 50px;
    width: auto;
}
.landing-card {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.landing-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.landing-subtitle {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 35px;
    line-height: 1.5;
}
.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #e31837 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.btn-outline {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #444;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: #666;
}
.btn svg {
    width: 20px;
    height: 20px;
}
.landing-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: #6b7280;
    font-size: 13px;
}
.landing-divider::before,
.landing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}
.landing-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #6b7280;
}
.landing-footer a {
    color: #9ca3af;
    text-decoration: none;
}
.landing-footer a:hover {
    color: #fff;
}
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #333;
}
.feature {
    text-align: center;
}
.feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.feature-text {
    font-size: 12px;
    color: #9ca3af;
}
.btn-description {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}
@media (max-width: 480px) {
    .landing-card {
        padding: 30px 20px;
    }
    .landing-title {
        font-size: 24px;
    }
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
.landing-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #c41e3a;
    font-size: 14px;
    margin-bottom: 20px;
}
.landing-error svg {
    flex-shrink: 0;
}
