/* Ana sayfa — hero ve avantajlar bölümü */

/* ── Minecraft temalı hero ── */
.hero--minecraft {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    margin-top: -2rem;
    overflow: hidden;
    text-align: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero__sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 78% 18%, rgba(255, 220, 100, 0.35), transparent 55%),
        radial-gradient(ellipse 90% 60% at 50% 0%, #1e4d6b 0%, #0f2233 45%, #0a1520 100%);
}

.hero__stars {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        radial-gradient(1px 1px at 10% 15%, #fff, transparent),
        radial-gradient(1px 1px at 25% 8%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 40% 22%, #fff, transparent),
        radial-gradient(1px 1px at 55% 12%, #fff, transparent),
        radial-gradient(1px 1px at 70% 18%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 85% 10%, #fff, transparent),
        radial-gradient(1px 1px at 92% 25%, #fff, transparent),
        radial-gradient(1px 1px at 15% 30%, #fff, transparent),
        radial-gradient(1px 1px at 60% 28%, #fff, transparent);
}

.hero__hills {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    height: 80px;
    background:
        linear-gradient(135deg, transparent 33%, #2d6a3e 33%, #2d6a3e 66%, transparent 66%),
        linear-gradient(225deg, transparent 33%, #357a46 33%, #357a46 66%, transparent 66%);
    background-size: 48px 48px;
    background-position: 0 0, 24px 0;
    opacity: 0.85;
    mask-image: linear-gradient(to top, black 60%, transparent);
}

.hero__grass {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background-color: #5a9e3e;
    background-image:
        linear-gradient(90deg,
            #4d8a35 0, #4d8a35 16px,
            #5a9e3e 16px, #5a9e3e 32px,
            #6aad48 32px, #6aad48 48px,
            #5a9e3e 48px, #5a9e3e 64px);
    background-size: 64px 16px;
    image-rendering: pixelated;
    border-top: 4px solid #4a8532;
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.12);
}

.hero__grass::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    background: repeating-linear-gradient(
        90deg,
        #8b6914 0px, #8b6914 16px,
        #7a5c12 16px, #7a5c12 32px,
        #9a7520 32px, #9a7520 48px,
        #8b6914 48px, #8b6914 64px
    );
    background-size: 64px 16px;
    image-rendering: pixelated;
}

.hero__cube {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    image-rendering: pixelated;
    opacity: 0.75;
    animation: hero-float 5s ease-in-out infinite;
    box-shadow:
        inset 3px 3px 0 rgba(255, 255, 255, 0.25),
        inset -3px -3px 0 rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero__cube--1 {
    top: 22%;
    left: 8%;
    background: linear-gradient(145deg, #6dbd4a, #3d7a28);
    animation-delay: 0s;
}

.hero__cube--2 {
    top: 35%;
    right: 10%;
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #8b7355, #5c4a32);
    animation-delay: 1.2s;
}

.hero__cube--3 {
    top: 18%;
    right: 22%;
    width: 22px;
    height: 22px;
    background: linear-gradient(145deg, #7ec8e8, #4a90b8);
    animation-delay: 2.4s;
}

.hero__cube--4 {
    bottom: 28%;
    left: 14%;
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, #c9a227, #8b7018);
    animation-delay: 0.8s;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e8ffd9;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(87, 200, 77, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero--minecraft .hero__title {
    margin-bottom: 1rem;
    color: #fff;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero--minecraft .hero__description {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero--minecraft .hero__actions {
    margin-top: 0.25rem;
}

.hero--minecraft .btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
}

.hero--minecraft .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .hero__sky {
    background:
        radial-gradient(ellipse 50% 45% at 82% 12%, rgba(255, 210, 80, 0.55), transparent 50%),
        linear-gradient(180deg, #5eb3e8 0%, #87ceeb 40%, #b8dff5 100%);
}

[data-theme="light"] .hero__stars {
    opacity: 0.15;
}

[data-theme="light"] .hero__hills {
    opacity: 0.7;
}

[data-theme="light"] .hero--minecraft .hero__title {
    color: #0f2233;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .hero--minecraft .hero__description {
    color: #1a3a4a;
    text-shadow: none;
}

[data-theme="light"] .hero__badge {
    color: #1a4a28;
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(87, 200, 77, 0.5);
}

[data-theme="light"] .hero--minecraft .btn--secondary {
    background: rgba(255, 255, 255, 0.75);
    color: #1a3a4a;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hero--minecraft .btn--secondary:hover {
    color: var(--color-primary);
}

/* ── Neden biz? bölümü ── */
.why-us {
    position: relative;
    padding: 3.5rem 0;
}

.why-us::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 70%);
    pointer-events: none;
}

.why-us .container {
    position: relative;
    z-index: 1;
}

.why-us__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.why-us__eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
    border-radius: 999px;
}

.why-us__title {
    margin-bottom: 0.65rem;
}

.why-us__subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.why-us__card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.35rem 1.25rem;
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--color-surface) 90%, var(--color-primary) 10%),
        var(--color-surface)
    );
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-small);
    transition:
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.why-us__card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
    transform: translateY(-3px);
    box-shadow: var(--btn-shadow-hover);
}

.why-us__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    line-height: 1;
    background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface-secondary));
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
    border-radius: 12px;
    box-shadow: var(--btn-shadow);
}

.why-us__card-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.why-us__card-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Son rehberler ── */
.latest-guides {
    position: relative;
    padding: 3.5rem 0;
}

.latest-guides::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 20% 80%, color-mix(in srgb, #5b8def 7%, transparent), transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 20%, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 60%);
    pointer-events: none;
}

.latest-guides .container {
    position: relative;
    z-index: 1;
}

.latest-guides__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.latest-guides__eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b8def;
    background: color-mix(in srgb, #5b8def 12%, transparent);
    border: 1px solid color-mix(in srgb, #5b8def 28%, var(--color-border));
    border-radius: 999px;
}

.latest-guides__title {
    margin-bottom: 0.65rem;
}

.latest-guides__subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.latest-guides__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
    margin-bottom: 2rem;
}

.latest-guides__footer {
    text-align: center;
}

@media (max-width: 900px) {
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero--minecraft {
        padding: 3rem 0 4.5rem;
        margin-top: -2rem;
    }

    .hero__cube {
        opacity: 0.45;
    }

    .hero__cube--1 { left: 2%; }
    .hero__cube--2 { right: 3%; }

    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .why-us {
        padding: 2.5rem 0;
    }

    .latest-guides {
        padding: 2.5rem 0;
    }

    .latest-guides__grid {
        grid-template-columns: 1fr;
    }
}
