/* ══════════════════════════════════════════════════
   QTR Framework — Home Page CSS
   public/css/pages/home.css
   ══════════════════════════════════════════════════ */

/* ── Section ortak ──────────────────────────────── */
.section { padding: 7rem 0; }
.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: var(--tracking-tight); margin: .9rem 0; }
.section-sub { color: var(--color-muted); max-width: 540px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }

/* ── HERO ───────────────────────────────────────── */
.home-hero {
    padding: 7.5rem 0 6rem;
    background:
        radial-gradient(circle at 74% 28%, rgba(52,211,153,.1), transparent 23rem),
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.hero-badge-sep { color: var(--color-muted); font-size: .85rem; }

.hero-title {
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.045em;
    margin-bottom: 1.25rem;
}
.hero-accent { color: var(--color-text); text-shadow: 0 0 42px rgba(52,211,153,.16); }

.hero-sub {
    font-size: 1.08rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.hero-social-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.hero-social a {
    color: var(--color-muted);
    display: flex;
    align-items: center;
    transition: color .2s;
}
.hero-social a:hover { color: var(--color-primary); }

/* ── Terminal visual ────────────────────────────── */
.hero-visual { position: relative; }
.hero-visual::before {
    content: "";
    position: absolute;
    inset: -22%;
    background: radial-gradient(circle, rgba(52,211,153,.2), rgba(52,211,153,.06) 34%, transparent 62%);
    filter: blur(34px);
    opacity: .9;
    z-index: 0;
    pointer-events: none;
}

.hero-terminal {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #090d15, #05070c);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: .82rem;
}

.terminal-bar {
    background: rgba(255,255,255,.035);
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.terminal-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.terminal-title {
    font-size: .72rem;
    color: #7c8595;
    margin-left: auto;
}

.terminal-body {
    padding: 1.45rem 1.6rem;
    line-height: 1.9;
    color: #e6edf3;
}
.t-prompt { color: #34d399; user-select: none; }
.t-cmd    { color: #79c0ff; }
.t-out    { color: #8b949e; padding-left: 1.25rem; }
.t-green  { color: #6ee7b7; }
.t-link   { color: #58a6ff; text-decoration: underline; }
.t-cursor {
    display: inline-block;
    color: #28c840;
    animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── FEATURES ───────────────────────────────────── */
.home-features { background: linear-gradient(180deg, var(--color-bg), var(--color-bg-secondary)); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.feature-icon { font-size: 1.35rem; color: var(--color-primary); filter: saturate(.7); opacity: .86; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; }
.feature-card p  { font-size: .9rem; color: var(--color-muted); line-height: 1.65; margin: 0; }

.features-footer { text-align: center; margin-top: 2.5rem; }

.developer-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.developer-proof-card {
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    background: rgba(255,255,255,.022);
    box-shadow: var(--shadow-ambient);
    overflow: hidden;
}

.developer-proof-card span {
    display: block;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text-secondary);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.developer-proof-card pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    color: var(--color-code-text);
    font-family: var(--font-mono);
    font-size: .82rem;
    line-height: 1.65;
    background: rgba(0,0,0,.22);
}

.developer-proof-card code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.developer-proof-card p {
    margin: 0;
    padding: .95rem 1rem 1rem;
    color: var(--color-muted);
    font-size: .82rem;
    line-height: 1.55;
}

/* ── STATS ──────────────────────────────────────── */
.home-stats {
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
        var(--color-bg-secondary);
    border-block: 1px solid var(--color-border-subtle);
    color: var(--color-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { padding: 2rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius); background: rgba(255,255,255,.025); box-shadow: var(--shadow-ambient); }
.stat-icon  { font-size: 1.35rem; margin-bottom: 1rem; color: var(--color-primary); opacity: .78; filter: saturate(.7); }
.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
    margin-bottom: .35rem;
}
.stat-label { font-size: 1rem; font-weight: 600; color: var(--color-text-secondary); margin-bottom: .5rem; }
.stat-desc  { font-size: .85rem; color: var(--color-muted); line-height: 1.6; margin: 0; }
.stats-note {
    text-align: center;
    margin-top: 2rem;
    font-size: .78rem;
    color: var(--color-muted);
}
.stats-note a { color: var(--color-text-secondary); }

/* ── COMPARISON ─────────────────────────────────── */
.home-comparison { background: var(--color-bg); }
.comparison-wrap { overflow-x: auto; border: 1px solid var(--color-border-subtle); border-radius: var(--radius); background: rgba(255,255,255,.018); box-shadow: var(--shadow-ambient); }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
    text-align: center;
}
.comparison-table th { font-weight: 700; background: rgba(255,255,255,.025); color: var(--color-text-secondary); }
.comparison-table th:first-child,
.comparison-table td:first-child { text-align: left; }
.comparison-table .cmp-highlight { background: rgba(52,211,153,.045); }
.comparison-table tr:hover td { background: rgba(255,255,255,.025); }

.cmp-yes     { color: #86efac; font-size: 1.05rem; font-weight: 700; filter: saturate(.75); }
.cmp-no      { color: #fca5a5; font-size: 1.05rem; filter: saturate(.55); }
.cmp-partial { color: #fcd34d; font-size: .8rem; font-weight: 600; filter: saturate(.65); }

/* ── SOCIAL PROOF ───────────────────────────────── */
.home-social-proof { background: var(--color-bg-secondary); }

.social-proof-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}
.sp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    text-align: center;
}
.sp-stat svg { color: var(--color-primary); }
.sp-stat strong { font-size: 1.5rem; font-weight: 800; }
.sp-stat span   { font-size: .82rem; color: var(--color-muted); }

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.quote-card {
    padding: 2rem;
    position: relative;
    border-left: 1px solid rgba(52,211,153,.32);
}
.quote-icon {
    color: var(--color-primary);
    opacity: .5;
    margin-bottom: 1rem;
}
.quote-card p {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 0 0 1.25rem;
}
.quote-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-style: normal;
}
.quote-author img {
    border-radius: 50%;
    width: 36px; height: 36px;
    object-fit: cover;
}
.quote-avatar-placeholder {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}
.quote-author strong { display: block; font-size: .9rem; }
.quote-author span   { font-size: .78rem; color: var(--color-muted); }

/* ── LATEST POSTS ───────────────────────────────── */
.home-latest-posts { background: var(--color-bg); }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.post-card-img { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-img-placeholder {
    aspect-ratio: 16/9;
    background: var(--color-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }

.post-card-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .78rem;
    color: var(--color-muted);
}
.post-card-meta svg { vertical-align: middle; }

.post-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.post-card-title a { color: var(--color-text); text-decoration: none; }
.post-card-title a:hover { color: var(--color-primary-dark); }

.post-card-excerpt { font-size: .875rem; color: var(--color-muted); line-height: 1.6; flex: 1; margin: 0; }

.post-card-read {
    margin-top: auto;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.posts-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--color-muted);
}
.posts-empty svg { margin-bottom: 1rem; opacity: .4; }

/* ── ORTA CTA ───────────────────────────────────── */
.home-cta-mid {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 7rem 0;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 10%, rgba(52,211,153,.12), transparent 18rem),
        rgba(255,255,255,.025);
    box-shadow: var(--shadow-ambient);
}
.cta-band-content h2 { font-size: 1.75rem; font-weight: 800; color: var(--color-text); margin-bottom: .5rem; }
.cta-band-content p  { color: var(--color-text-secondary); margin: 0; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── ALT CTA / DESTEK ───────────────────────────── */
.home-cta-bottom { background: var(--color-bg-secondary); padding: 5rem 0 7rem; }

.support-band {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    flex-wrap: wrap;
}
.support-band-icon { font-size: 1.45rem; color: var(--color-primary); filter: saturate(.7); opacity: .82; }
.support-band-text { flex: 1; }
.support-band-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.support-band-text p  { font-size: .9rem; color: var(--color-muted); margin: 0; }
.support-band-actions { display: flex; gap: .75rem; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid    { grid-template-columns: repeat(2, 1fr); }
    .developer-proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-visual { display: none; } /* Mobilde terminal gizlenir, yük azaltılır */
    .stats-grid     { grid-template-columns: 1fr; }
    .quotes-grid    { grid-template-columns: 1fr; }
    .cta-band       { flex-direction: column; text-align: center; align-items: flex-start; }
    .support-band   { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .posts-grid    { grid-template-columns: 1fr; }
    .hero-cta      { flex-direction: column; }
    .hero-title    { font-size: 1.85rem; }
    .section       { padding: 3.5rem 0; }
    .social-proof-stats { gap: 2rem; }
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .t-cursor { animation: none; }
    .feature-card:hover,
    .post-card:hover { transform: none; }
}

@media (max-width: 768px) {
    .hero-visual { display: block; max-width: 100%; }
    .hero-terminal { font-size: .72rem; }
    .terminal-body { padding: 1rem; overflow-x: auto; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.15rem; line-height: 1.04; }
    .home-hero { padding: 5rem 0 4rem; }
    .section { padding: 4.75rem 0; }
    .section-header { margin-bottom: 3rem; }
    .comparison-table th,
    .comparison-table td { padding: .8rem 1rem; white-space: nowrap; }
    .cta-band,
    .support-band { padding: 1.5rem; }
}
