﻿/* ============================================
   oyunkazan.com.tr - Custom Styles & Animations
   ============================================ */

/* Orbitron Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600;700;900&display=swap');
.font-orbitron { font-family: 'Orbitron', sans-serif; }

/* Root Variables */
:root {
    --neon-red: #FF4655;
    --neon-cyan: #00D9FF;
    --neon-purple: #C042FF;
    --neon-blue: #00B0F0;
}

/* Global Styles */
* {
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
}

/* Neon Text Effects */
.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5),
                 0 0 20px rgba(0, 217, 255, 0.3),
                 0 0 30px rgba(0, 217, 255, 0.2);
    font-weight: 900;
    letter-spacing: 2px;
}

.neon-text-large {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.neon-button {
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3),
                inset 0 0 10px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.neon-button:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6),
                inset 0 0 20px rgba(0, 217, 255, 0.2);
    transform: scale(1.05);
}

/* Hover Neon Effect */
.hover-neon {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.hover-neon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.3s ease;
}

.hover-neon:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.hover-neon:hover::after {
    width: 100%;
}

/* Particles Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
}

.particle.red {
    background: var(--neon-red);
}

.particle.purple {
    background: var(--neon-purple);
}

/* Glowing Border Effects */
.glow-border {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4),
                inset 0 0 15px rgba(0, 217, 255, 0.1);
}

.glow-border:hover {
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.8),
                inset 0 0 25px rgba(0, 217, 255, 0.2);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 10px var(--neon-cyan);
    }
    50% {
        text-shadow: 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-red);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scan-line {
    0% {
        top: 0%;
    }
    100% {
        top: 100%;
    }
}

.glitch-text {
    animation: glitch 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Fade In Animations */
h1, h2, h3 {
    animation: fadeInDown 0.8s ease-out;
}

p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.grid > * {
    animation: fadeInUp 0.8s ease-out;
}

.grid > *:nth-child(1) {
    animation-delay: 0s;
}

.grid > *:nth-child(2) {
    animation-delay: 0.1s;
}

.grid > *:nth-child(3) {
    animation-delay: 0.2s;
}

.grid > *:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .neon-text-large {
        font-size: 2.25rem;
    }

    .neon-text {
        font-size: 1.5rem;
    }

    /* Navigation Adjustments */
    nav {
        padding: 0.75rem 0;
    }

    /* Hero Section Adjustments */
    section {
        padding: 2rem 0 !important;
    }

    /* Grid Adjustments */
    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dark Mode Optimization */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000;
        color: #fff;
    }
}

/* Smooth Transitions */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: scale(0.98);
}

/* Form Elements */
input, textarea, select {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--neon-cyan);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
    border-color: var(--neon-cyan);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 176, 240, 0.8);
}

/* Selection Color */
::selection {
    background: var(--neon-cyan);
    color: #000;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

/* Card Hover Effects */
.card, .group {
    position: relative;
    overflow: hidden;
}

.card::before, .group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.card:hover::before, .group:hover::before {
    left: 100%;
}

/* Responsive Spacing */
@media (max-width: 640px) {
    section {
        padding: 1.5rem 0;
    }

    .max-w-6xl, .max-w-5xl, .max-w-4xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Tooltip Styling */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Mobile Navigation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero Title Gradient */
.hero-title-gradient {
    background: linear-gradient(135deg, var(--neon-red) 0%, #FF6B6B 30%, var(--neon-cyan) 70%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scan animation for game cards */
@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

.group:hover .animate-scan {
    animation: scan 2s linear infinite;
}

/* Slow bounce for badge */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }

    .neon-text {
        color: #000;
        text-shadow: none;
    }
}
