/* Modern Robot Yarışmaları - Teknolojik Tema */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Renk Paleti - Teknolojik Tema */
    --robot-yellow: #FFD700;
    --robot-yellow-dark: #FFC107;
    --robot-yellow-light: #FFF9C4;
    --robot-yellow-glow: rgba(255, 215, 0, 0.4);
    
    /* Koyu Tema Renkleri */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b2d;
    --bg-card: #1a2332;
    --bg-card-hover: #222d42;
    
    /* Açık Tema Renkleri */
    --bg-light: #f8fafc;
    --bg-light-card: #ffffff;
    
    /* Gradient'ler */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-yellow: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    --gradient-tech: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #141b2d 100%);
    --gradient-neon: linear-gradient(135deg, #00f5ff 0%, #ff00ff 100%);
    
    /* Gölgeler */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--robot-yellow-glow);
    --shadow-neon: 0 0 20px rgba(0, 245, 255, 0.5);
    
    /* Metin Renkleri */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #ffffff;
    --text-muted: #718096;
}

* {
    font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    min-height: 100vh;
    position: relative;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
}

.glass-dark {
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern Card - Teknolojik Tasarım */
.modern-card {
    background: var(--bg-light-card);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card a {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover::after {
    opacity: 1;
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--robot-yellow);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Button - Teknolojik */
.btn-modern {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: auto;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 400px;
    height: 400px;
}

.btn-modern:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-modern:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-yellow {
    background: var(--gradient-yellow);
    color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    font-weight: 800;
}

.btn-yellow:hover {
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFC107 0%, #FFD700 100%);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--robot-yellow-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px var(--robot-yellow-glow), 0 0 60px var(--robot-yellow-glow);
        transform: scale(1.05);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Modern Input */
.modern-input {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    width: 100%;
    font-weight: 500;
}

.modern-input:focus {
    outline: none;
    border-color: var(--robot-yellow);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15), var(--shadow-md);
    transform: translateY(-2px);
    background: #fffef9;
}

.modern-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a5568;
    margin-bottom: 0.6rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: #f7fafc;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.chip:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1a202c;
}

.chip-active {
    background: #fff6d5;
    color: #7a5800;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35);
}

.stat-chip {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 120px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.stat-helper {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Badge */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.modern-badge:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-gradient {
    background: var(--gradient-tech);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Modern Header */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--robot-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.modern-header a,
.modern-header button,
.modern-header form {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.modern-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-yellow);
    animation: shimmer 3s infinite;
}

/* Modern Footer */
.modern-footer {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    margin-top: 6rem;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-yellow);
    box-shadow: var(--shadow-glow);
}

.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }

/* Hover Scale */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.1);
}

/* Line Clamp Utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Tech Pattern Background */
.tech-pattern {
    position: relative;
    overflow: hidden;
}

.tech-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 10px var(--robot-yellow),
        0 0 20px var(--robot-yellow),
        0 0 30px var(--robot-yellow);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 3px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 3px;
    background: var(--gradient-yellow);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Responsive Typography */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
    
    .btn-modern {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-yellow);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--robot-yellow-dark);
}

/* Selection Styling */
::selection {
    background: var(--robot-yellow);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--robot-yellow);
    color: var(--text-primary);
}

/* Focus Visible */
*:focus-visible {
    outline: 3px solid var(--robot-yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Tab Styles */
.tab-button {
    transition: all 0.2s ease;
}

.tab-button:hover {
    border-color: #d1d5db;
}

.tab-button.active {
    border-color: #2563eb;
    color: #2563eb;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Checkbox Styles */
.custom-checkbox {
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, var(--robot-yellow), var(--robot-yellow-dark));
    border-color: var(--robot-yellow-dark);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-custom svg {
    display: block;
}

.checkbox-custom {
    transition: all 0.2s ease;
    background: white;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-custom svg {
    transition: all 0.2s ease;
    stroke-width: 3;
}

.custom-checkbox:hover .checkbox-custom {
    border-color: var(--robot-yellow);
}

.custom-checkbox input[type="checkbox"]:focus ~ .checkbox-custom {
    outline: 2px solid var(--robot-yellow);
    outline-offset: 2px;
}
