/**
 * Kings of Vas - Main Styles
 * Modern Dark Gaming Theme
 */

/* CSS Variables */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-card: #161b22;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-cyan: #00d9ff;
    --accent-green: #00ff88;
    --accent-gold: #ffd700;
    --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-nav {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
    background: rgba(0, 217, 255, 0.1);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(26, 31, 58, 0.9) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 217, 255, 0.4); }
    to { text-shadow: 0 0 40px rgba(0, 217, 255, 0.8); }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 10px;
}

.hero-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Page Header */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Featured Video Section */
.featured-video {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-cyan);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
    border: 1px solid var(--border-color);
}

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

.video-info {
    margin-top: 30px;
    text-align: center;
}

.video-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-secondary);
}

/* Players Grid */
.players-section {
    padding: 60px 0;
}

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

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.player-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

.player-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
}

.player-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-green);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 10px var(--accent-green);
}

.player-status.inactive {
    background: var(--text-secondary);
}

.player-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.player-role {
    color: var(--accent-cyan);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.player-weapon {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.player-stats-mini {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.player-stats-mini .stat {
    text-align: center;
}

.player-stats-mini .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-green);
    font-family: 'Orbitron', sans-serif;
}

.player-stats-mini .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Player Profile */
.player-profile {
    padding: 60px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.back-link:hover {
    color: var(--accent-cyan);
}

.profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 50px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.profile-avatar img,
.avatar-placeholder-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    object-fit: cover;
}

.avatar-placeholder-large {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: 700;
    color: var(--bg-primary);
}

.profile-info h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.profile-role {
    font-size: 18px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-bio {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.profile-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.stat-value {
    font-size: 48px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--accent-green);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-social {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.profile-social h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    padding: 12px 24px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.social-link.discord {
    cursor: default;
}

.social-link.discord:hover {
    transform: none;
}

/* Videos Section */
.videos-section {
    padding: 60px 0;
}

/* Full-width scrollable video layout */
.videos-scroll {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-full-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
}

.video-full-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

.video-full-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

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

.video-full-info {
    padding: 30px;
}

.video-full-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.video-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.video-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.youtube-link {
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.youtube-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .videos-scroll {
        gap: 40px;
    }
    
    .video-full-info {
        padding: 20px;
    }
    
    .video-full-info h2 {
        font-size: 22px;
    }
    
    .video-description {
        font-size: 14px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Legacy video grid styles (kept for compatibility) */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--bg-primary);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-primary);
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-green);
}

.video-card-info {
    padding: 20px;
}

.video-card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-card-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5);
    color: var(--bg-primary);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer p {
    margin: 5px 0;
}

/* Registration Page */
.register-section {
    padding: 60px 0;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.register-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.register-info > p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.register-requirements,
.register-process {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.register-requirements h3,
.register-process h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-green);
}

.register-requirements ul,
.register-process ol {
    padding-left: 25px;
    color: var(--text-secondary);
    line-height: 2;
}

.register-requirements li,
.register-process li {
    margin-bottom: 8px;
}

.register-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.register-form input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.register-form small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-note a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.form-note a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 968px) {
    .register-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .register-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}
