/* ===============================================
   TAKIMBUL - PREMIUM GAMING UI FRAMEWORK
   Modern Valorant-Inspired Design System
   =============================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Valorant Color Palette */
    --valorant-red: #FF4655;
    --valorant-blue: #00F5FF;
    --valorant-dark: #0F1419;
    --valorant-darker: #0A0E13;
    --valorant-light: #FFFBF5;
    --valorant-gold: #FFD700;
    
    /* Gaming UI Colors */
    --bg-primary: linear-gradient(135deg, #0F1419 0%, #1E2328 50%, #0F1419 100%);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-hover: rgba(255, 70, 85, 0.1);
    
    /* Text Colors */
    --text-primary: #FFFBF5;
    --text-secondary: rgba(255, 251, 245, 0.8);
    --text-muted: rgba(255, 251, 245, 0.6);
    --text-accent: #00F5FF;
    
    /* Effects */
    --glow-primary: 0 0 20px rgba(255, 70, 85, 0.3);
    --glow-secondary: 0 0 15px rgba(0, 245, 255, 0.2);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-validation: 0 0 25px rgba(255, 70, 85, 0.6), 0 0 50px rgba(255, 70, 85, 0.3), 0 0 75px rgba(255, 70, 85, 0.1);
    
    /* Borders */
    --border-primary: 1px solid rgba(255, 70, 85, 0.3);
    --border-secondary: 1px solid rgba(0, 245, 255, 0.2);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--valorant-red), #FF6B7A);
    --gradient-secondary: linear-gradient(135deg, var(--valorant-blue), #33F6FF);
    --gradient-premium: linear-gradient(135deg, var(--valorant-gold), #FFE55C);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Gaming Typography */
.gaming-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-primary);
}

.gaming-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== LAYOUT SYSTEM ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.gaming-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gaming-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gaming-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ========== GAMING CARDS ========== */
.gaming-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gaming-card:hover {
    transform: translateY(-5px);
    border-color: var(--valorant-red);
    box-shadow: var(--glow-primary), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gaming-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gaming-card:hover::before {
    opacity: 1;
}

/* Premium Card */
.gaming-card.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--glow-gold);
}

.gaming-card.premium::before {
    background: var(--gradient-premium);
    opacity: 1;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 70, 85, 0.5);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--glow-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: var(--border-primary);
}

.btn-outline:hover {
    background: rgba(255, 70, 85, 0.1);
    border-color: var(--valorant-red);
    color: var(--valorant-red);
}

.btn-copy {
    background: rgba(0, 245, 255, 0.1);
    color: var(--valorant-blue);
    border: 1px solid rgba(0, 245, 255, 0.3);
    font-family: 'Orbitron', monospace;
}

.btn-copy:hover {
    background: rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

/* ========== LOBBY CARD ========== */
.lobby-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.lobby-card:hover {
    transform: translateY(-8px);
    border-color: var(--valorant-red);
    box-shadow: var(--glow-primary), 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lobby-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-accent);
    text-transform: uppercase;
    font-size: 14px;
}

.lobby-ranks {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lobby-code {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--valorant-gold);
    text-shadow: var(--glow-gold);
    letter-spacing: 2px;
}

.lobby-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
    font-size: 14px;
}

.lobby-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.lobby-description {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--valorant-blue);
}

.lobby-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.lobby-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.lobby-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--valorant-red);
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--valorant-blue);
    background: rgba(0, 245, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* ========== ANIMATIONS ========== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 70, 85, 0.6);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .gaming-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lobby-card {
        padding: 16px;
    }
    
    .lobby-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .lobby-actions {
        flex-direction: column;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lobby-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .lobby-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* ========== FORM VALIDATION EFFECTS ========== */

/* Sisli mavi glow efekti - zorunlu alanlar için */
.validation-glow {
    position: relative;
    animation: validationPulse 2s ease-in-out infinite;
}

.validation-glow::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: rgba(255, 70, 85, 0.3);
    border-radius: 12px;
    z-index: -1;
    filter: blur(8px);
    animation: gentleGlow 2s ease-in-out infinite;
}

.validation-glow::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 70, 85, 0.15);
    border-radius: 16px;
    z-index: -2;
    filter: blur(12px);
    animation: gentleGlow 3s ease-in-out infinite reverse;
}

/* Custom select wrapper glow */
.validation-glow .custom-select-wrapper {
    animation: validationPulse 2s ease-in-out infinite;
}

/* Input with button wrapper glow */
.validation-glow .input-with-button {
    animation: validationPulse 2s ease-in-out infinite;
}

@keyframes validationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes gentleGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}