/*
 * Retro Games - Main CSS
 * Ortak değişkenler ve temel stiller
 */

/* CSS Değişkenleri */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --success: #4CAF50;
    --danger: #ff4444;
    --warning: #fbbf24;
    --info: #60a5fa;
    --snake-green: #4CAF50;
    --snake-dark-green: #2E7D32;
    --food-red: #FF5722;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Ortak Buton Stilleri */
button {
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* Ortak Gradient Arkaplanlar */
.gradient-bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-bg-blue {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
}

.gradient-bg-ocean {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
}

/* Ortak Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ortak Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Screen reader only - hides visually but keeps accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus indicators for accessibility */
button:focus,
a:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
}
