/* assets/css/style.css - Scroll reveal, gelişmiş kartlar ve çoklu cihaz düzeni */
:root {
    --bg-canvas: #060a09;
    --bg-panel: rgba(10, 19, 16, 0.92);
    --bg-panel-hover: rgba(15, 29, 24, 0.98);
    --bg-input: #080f0d;
    --line: rgba(52, 211, 153, 0.18);
    --line-strong: rgba(52, 211, 153, 0.48);
    --ink: #f0fdf4;
    --ink-muted: #93afa4;
    --emerald: #10b981;
    --emerald-bright: #34d399;
    --emerald-dark: #059669;
    --amber: #f59e0b;
    --amber-bright: #fbbf24;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-xl: 0 22px 48px -18px rgba(0, 0, 0, 0.9);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background-color: var(--bg-canvas);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.15), transparent 38%),
        radial-gradient(circle at 88% 14%, rgba(245, 158, 11, 0.12), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(52, 211, 153, 0.08), transparent 45%);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: clip;
}

.page-body { flex: 1; }
a { color: inherit; text-decoration: none; }

code, pre, .logo-prompt, .logo-cursor, .eyebrow, .terminal-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

/* Scroll ile gelen hareketli yapı */
.reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes blinkCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pingSoft {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes sweepLight {
    0% { transform: translateX(-130%) skewX(-18deg); }
    100% { transform: translateX(250%) skewX(-18deg); }
}

.typing-active::after {
    content: "▌";
    color: var(--emerald-bright);
    margin-left: 2px;
    animation: blinkCursor 0.75s infinite;
}

input, textarea, select {
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--bg-input);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--emerald-bright);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(6, 10, 9, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.logo-prompt { color: var(--emerald-bright); font-weight: 700; }
.logo-cursor { color: var(--amber-bright); animation: blinkCursor 1.1s infinite; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(13, 23, 20, 0.8);
    border: 1px solid var(--line);
    padding: 4px;
    border-radius: 999px;
}

.nav-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-pill:hover {
    color: var(--ink);
    background: rgba(52, 211, 153, 0.12);
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xp-chip {
    font-size: 0.84rem;
    color: var(--ink-muted);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.xp-chip b { color: var(--amber-bright); }

.action-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.89rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease;
}

.action-btn:active { transform: scale(0.97); }

.action-lg {
    min-height: 46px;
    padding: 11px 22px;
    font-size: 0.96rem;
    border-radius: var(--radius-md);
}

.action-primary {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: #03150e;
    box-shadow: 0 10px 24px -8px rgba(16, 185, 129, 0.65);
}

.action-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: sweepLight 4.5s infinite ease-in-out;
}

.action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(52, 211, 153, 0.75);
}

.action-amber {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.38);
    color: var(--amber-bright);
}

.action-amber:hover {
    background: rgba(245, 158, 11, 0.22);
    transform: translateY(-2px);
}

.action-ghost { color: var(--ink-muted); background: transparent; }
.action-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.showcase-hero {
    padding: 58px 0 50px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald-bright);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.28);
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-bright);
    animation: pingSoft 2s infinite;
}

.hero-main h1 {
    font-size: clamp(1.9rem, 4.2vw, 3.05rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-desc {
    color: var(--ink-muted);
    font-size: 1.02rem;
    max-width: 560px;
    margin-bottom: 24px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.terminal-card,
.studio-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 36px -16px rgba(16, 185, 129, 0.32);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.24s ease,
                box-shadow 0.26s ease,
                background 0.24s ease;
}

.studio-card { display: flex; flex-direction: column; }

.terminal-card:hover,
.studio-card:hover {
    transform: translateY(-5px);
    background: var(--bg-panel-hover);
    border-color: var(--emerald-bright);
    box-shadow: var(--shadow-xl), 0 0 42px -12px rgba(52, 211, 153, 0.45);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: rgba(16, 185, 129, 0.07);
    border-bottom: 1px solid var(--line);
}

.mini-bar { padding: 9px 14px; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.mini-bar .dot { width: 9px; height: 9px; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
    margin-left: 6px;
    font-size: 0.78rem;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-body {
    padding: 20px;
    font-size: 0.88rem;
    line-height: 1.75;
    overflow-x: auto;
    color: var(--ink);
}

.t-comment { color: #67857a; }
.t-cmd { color: var(--amber-bright); font-weight: 700; }
.t-ok { color: var(--emerald-bright); }

.bento-section { padding: 48px 0; }

.bento-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--emerald-bright);
    margin-bottom: 4px;
}

.bento-head h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.more-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--amber-bright);
    transition: transform 0.2s ease, color 0.2s ease;
}

.more-link:hover { color: #fde68a; transform: translateX(4px); }

.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bento-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tile-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.center-content { align-items: center; text-align: center; padding: 32px 20px; }

.tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.tile-arrow {
    margin-left: auto;
    font-size: 1.05rem;
    color: var(--emerald-bright);
    transition: transform 0.2s ease;
}

.studio-card:hover .tile-arrow { transform: translate(3px, -3px); }
.studio-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.38; }
.studio-card h3 a:hover { color: var(--emerald-bright); }
.studio-card p { color: var(--ink-muted); font-size: 0.92rem; }

.tile-stats {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(52, 211, 153, 0.12);
    font-size: 0.84rem;
    color: var(--ink-muted);
}

.tag-emerald, .tag-amber {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tag-emerald {
    background: rgba(16, 185, 129, 0.14);
    color: var(--emerald-bright);
    border: 1px solid rgba(52, 211, 153, 0.26);
}

.tag-amber {
    background: rgba(245, 158, 11, 0.14);
    color: var(--amber-bright);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    margin-top: 28px;
    background: rgba(5, 9, 8, 0.92);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-sep { margin: 0 6px; color: var(--emerald-bright); }
.footer-copy { font-size: 0.84rem; color: var(--ink-muted); margin-top: 4px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-muted); }
.footer-nav a:hover { color: var(--emerald-bright); }

/* Tablet (iPad / Android Tablet) */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .bento-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobil (iOS / Android) */
@media (max-width: 640px) {
    .showcase-hero { padding: 36px 0 32px; }
    .bento-section { padding: 34px 0; }
    .bento-grid-2,
    .bento-grid-3 { grid-template-columns: 1fr; gap: 16px; }
    .primary-nav { width: 100%; justify-content: center; }
    .hero-cta .action-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}