/* ================================================================
   farzet.net — style.css
   Yerleşim:  sol alt = farzet.   |   sağ alt = sosyal butonlar
              sağ üst = saat
   ================================================================ */

:root {
    --bg: #07060d;
    --text: #f4f3f8;
    --muted: rgba(226, 222, 240, 0.62);
    --accent: #f03e3e;

    --glass: rgba(18, 16, 30, 0.42);
    --glass-hover: rgba(28, 25, 46, 0.62);
    --stroke: rgba(255, 255, 255, 0.10);
    --stroke-hover: rgba(255, 255, 255, 0.22);

    --edge-x: clamp(20px, 3.4vw, 56px);
    --edge-y: clamp(20px, 4.2vh, 48px);

    --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --f-pixel: 'Press Start 2P', ui-monospace, monospace;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------
   Arka plan
   --------------------------------------------------------------- */
#bg-video {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 0;
    background: var(--bg);
}

/* Yazıların okunması için alt ve kenarlarda yumuşak karartma */
.shade {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(5, 4, 12, 0.78) 0%, rgba(5, 4, 12, 0.35) 18%, rgba(5, 4, 12, 0) 38%),
        linear-gradient(to bottom, rgba(5, 4, 12, 0.35) 0%, rgba(5, 4, 12, 0) 14%);
}

/* ---------------------------------------------------------------
   Sahne: sol alt marka, sağ alt butonlar
   --------------------------------------------------------------- */
.stage {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding:
        0
        calc(var(--edge-x) + env(safe-area-inset-right, 0px))
        calc(var(--edge-y) + env(safe-area-inset-bottom, 0px))
        calc(var(--edge-x) + env(safe-area-inset-left, 0px));
}

/* ---------- Marka (sol alt) ---------- */
.identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.brand {
    font-family: var(--f-sans);
    font-weight: 900;
    font-size: clamp(20px, 5.4vw, 44px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    color: var(--text);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
    animation: rise 0.9s var(--ease) 0.15s both;
}

.dot {
    color: var(--accent);
    display: inline-block;
    animation: blink 1.4s steps(1) 1.1s 3;
}

.tagline {
    font-family: var(--f-pixel);
    font-size: clamp(8px, 0.62vw, 10px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding-left: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    animation: rise 0.9s var(--ease) 0.3s both;
}

/* ---------- Sosyal butonlar (sağ alt) ---------- */
.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.social {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px 0 16px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--muted);
    transition:
        transform 0.35s var(--ease),
        background-color 0.35s var(--ease),
        border-color 0.35s var(--ease),
        color 0.35s var(--ease),
        box-shadow 0.35s var(--ease);
    animation: rise 0.8s var(--ease) both;
    animation-delay: calc(0.45s + var(--i, 0) * 0.08s);
}

.social i {
    font-size: 17px;
    width: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.social-label {
    font-family: var(--f-pixel);
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1;
    padding-top: 1px; /* piksel fontu optik olarak ortala */
}

.social:hover,
.social:focus-visible {
    transform: translateY(-3px);
    background: var(--glass-hover);
    border-color: var(--stroke-hover);
    color: var(--text);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.social:hover i,
.social:focus-visible i {
    color: var(--c, #fff);
    transform: scale(1.12);
}

.social:active { transform: translateY(-1px) scale(0.98); }

.social:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Saat (sağ üst)
   --------------------------------------------------------------- */
.clock {
    position: fixed;
    z-index: 10;
    top: calc(var(--edge-y) + env(safe-area-inset-top, 0px));
    right: calc(var(--edge-x) + env(safe-area-inset-right, 0px));
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: var(--f-pixel);
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--muted);
    animation: fade 1s var(--ease) 0.6s both;
}

.clock time { color: var(--text); }

.clock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
    animation: pulse 2.4s ease-out infinite;
}


@keyframes floatHeart {
    0% {
        opacity: 1;
        transform: scale(0.5) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) translateY(-30px);
    }
    100% {
        opacity: 0;
        transform: scale(1) translateY(-60px);
    }
}

/* Mobilde ekran oranına göre gizleme / küçültme */
@media (max-width: 768px) {
    .cat-zone {
        right: 5%;
        bottom: 18%;
        width: 120px;
        height: 70px;
    }
}

/* ---------------------------------------------------------------
   Animasyonlar
   --------------------------------------------------------------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes blink {
    50% { opacity: 0; }
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------------------------------------------------------------
   Tablet: butonlar yalnızca ikon (yuvarlak), düzen aynı kalır
   --------------------------------------------------------------- */
@media (max-width: 900px) {
    .social {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
    .social-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* ---------------------------------------------------------------
   Telefon: marka sol altta, ikonlar sağ altta — aynı satır
   --------------------------------------------------------------- */
@media (max-width: 520px) {
    .stage { gap: 12px; }
    .identity { gap: 8px; }
    .brand { font-size: clamp(32px, 10vw, 44px); }
    .tagline { font-size: 7px; letter-spacing: 1.5px; }
    .socials { gap: 6px; flex-wrap: nowrap; }
    .social { width: 40px; height: 40px; }
    .social i { font-size: 16px; }
    .clock { height: 30px; font-size: 7px; padding: 0 12px; }
}

/* Çok dar ekran: ikonlar markanın üstüne değil, 2x2 ızgaraya geçer */
@media (max-width: 340px) {
    .socials {
        display: grid;
        grid-template-columns: repeat(2, 40px);
    }
}
