* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 15px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    background: linear-gradient(-45deg, #ec8f10, #f8df1f, #707070, #ec8f10, #f8df1f);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Parlak ışık efekti */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236,143,16,0.2) 0%, transparent 30%);
    animation: lightMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes lightMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease-out, glow 2s ease-in-out infinite alternate;
    text-shadow:
        0 0 10px #ec8f10,
        0 0 20px #ec8f10,
        0 0 30px #f8df1f,
        0 0 40px #f8df1f;
}

@keyframes glow {
    from {
        text-shadow:
            0 0 10px #ec8f10,
            0 0 20px #ec8f10,
            0 0 30px #f8df1f;
    }
    to {
        text-shadow:
            0 0 20px #f8df1f,
            0 0 30px #f8df1f,
            0 0 40px #ec8f10,
            0 0 50px #ec8f10;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: rgba(112, 112, 112, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.menu-button:nth-child(1) { animation-delay: 0.1s; }
.menu-button:nth-child(2) { animation-delay: 0.2s; }
.menu-button:nth-child(3) { animation-delay: 0.3s; }
.menu-button:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parlama efekti */
.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.menu-button:hover::before,
.menu-button:focus::before {
    left: 100%;
}

/* Glow border efekti */
.menu-button::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(45deg, #ec8f10, #f8df1f, #fff, #f8df1f, #ec8f10);
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.menu-button:hover::after,
.menu-button:focus::after {
    opacity: 1;
}

.menu-button:hover,
.menu-button:focus {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.menu-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.menu-button img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    background: linear-gradient(145deg, #707070, #505050);
    padding: 10px;
}

.menu-button:hover img {
    transform: rotate(-3deg) scale(1.05);
}

.menu-button span {
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #ec8f10, #f8df1f);
    text-transform: uppercase;
}

/* Pulse animasyonu - dikkat çekici */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
}

.menu-button:nth-child(1) { animation: fadeInUp 0.6s ease-out backwards, pulse 3s ease-in-out 1s infinite; }

/* Tablet ve üzeri */
@media (min-width: 500px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container {
        max-width: 500px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .menu-grid {
        gap: 20px;
    }

    .menu-button:hover,
    .menu-button:focus {
        transform: translateY(-8px) scale(1.03);
    }

    .menu-button:hover img {
        transform: scale(1.08);
    }

    .menu-button span {
        padding: 15px 10px;
        font-size: 1rem;
    }
}

/* Erişilebilirlik */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
