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

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif;
    background: linear-gradient(135deg, #a8d8ff 0%, #e0c3fc 50%, #ffd6e8 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Arka Plan Animasyonları */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.butterfly, .kite, .flower {
    position: absolute;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.butterfly {
    font-size: 30px;
    animation: flyButterfly 15s infinite;
}

.butterfly:nth-child(1) { animation-delay: 0s; top: 10%; left: -50px; }
.butterfly:nth-child(2) { animation-delay: 3s; top: 30%; left: -50px; }
.butterfly:nth-child(3) { animation-delay: 6s; top: 60%; left: -50px; }
.butterfly:nth-child(4) { animation-delay: 9s; top: 80%; left: -50px; }

.kite {
    font-size: 35px;
    animation: floatKite 20s infinite;
}

.kite:nth-child(1) { animation-delay: 0s; top: 15%; right: -60px; }
.kite:nth-child(2) { animation-delay: 7s; top: 45%; right: -60px; }
.kite:nth-child(3) { animation-delay: 14s; top: 75%; right: -60px; }

.flower {
    font-size: 25px;
    animation: sway 4s ease-in-out infinite;
}

.flower:nth-child(1) { bottom: 20px; left: 5%; animation-delay: 0s; }
.flower:nth-child(2) { bottom: 15px; left: 15%; animation-delay: 0.5s; }
.flower:nth-child(3) { bottom: 25px; left: 25%; animation-delay: 1s; }
.flower:nth-child(4) { bottom: 20px; right: 25%; animation-delay: 1.5s; }
.flower:nth-child(5) { bottom: 18px; right: 15%; animation-delay: 2s; }
.flower:nth-child(6) { bottom: 22px; right: 5%; animation-delay: 2.5s; }

/* Animasyonlar */
@keyframes flyButterfly {
    0% { transform: translate(-50px, 0) rotate(0deg); }
    25% { transform: translate(25vw, -30px) rotate(10deg); }
    50% { transform: translate(50vw, 20px) rotate(-10deg); }
    75% { transform: translate(75vw, -20px) rotate(5deg); }
    100% { transform: translate(110vw, 10px) rotate(0deg); }
}

@keyframes floatKite {
    0% { transform: translate(60px, 0) rotate(-5deg); }
    25% { transform: translate(-25vw, -40px) rotate(-8deg); }
    50% { transform: translate(-50vw, 30px) rotate(-3deg); }
    75% { transform: translate(-75vw, -25px) rotate(-7deg); }
    100% { transform: translate(-110vw, 20px) rotate(-5deg); }
}

@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: bounceIn 1s;
}

h1 {
    color: white;
    font-size: 2.5em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.subtitle {
    color: #fff;
    font-size: 1.2em;
    opacity: 0.9;
}

/* Ana Sayfa Buton */
.home-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Kategoriler */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    transition: height 0.3s;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.category-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

/* Kategori Renkleri */
.math::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.science::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.turkish::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.english::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.life::before {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* İkonlar */
.icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.math .icon { animation-delay: 0s; }
.science .icon { animation-delay: 0.5s; }
.turkish .icon { animation-delay: 1s; }
.english .icon { animation-delay: 1.5s; }
.life .icon { animation-delay: 2s; }

.category-card h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.game-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
    font-weight: bold;
}

.math .game-count {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.science .game-count {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.turkish .game-count {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.english .game-count {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.life .game-count {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Oyun Listesi */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.game-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.game-card .game-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.game-card h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.game-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    color: white;
    opacity: 0.8;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    .subtitle { font-size: 1em; }
    .category-card {
        width: 100%;
        max-width: 400px;
        padding: 25px;
    }
    .categories { gap: 20px; }
    .icon { font-size: 3.5em; }
    .games-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body { padding: 15px; }
    h1 { font-size: 1.6em; }
    .category-card h2 { font-size: 1.5em; }
    .icon { font-size: 3em; }
}