:root {
    --primary: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #0891b2;
    --primary-bg: #ecfeff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── NAV ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.4rem 0.9rem;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-links a.btn-nav {
    background: var(--primary);
    color: var(--white);
}

.nav-links a.btn-nav:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ── BUTONLAR ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-bg);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    background: linear-gradient(160deg, var(--primary-bg) 0%, var(--bg) 60%);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FORM KARTI ── */
.form-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
}

.form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.form-card .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--white);
    color: var(--text);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.form-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ── ALERT ── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: none;
}

.alert.show { display: block; }

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ── SAYFA ORTALAMA ── */
.page-center {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ── FOOTER ── */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.footer-social a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.footer-app-link {
    display: flex;
    align-items: center;
    background: #000;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s;
}

.footer-app-link:hover {
    transform: scale(1.03);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ── MOBİL ── */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}


/* ── Canlı Yayın Halka Göstergesi ────────────────────────────────────────── */
.avatar-live-ring {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f58529 0%, #feda77 20%, #dd2a7b 50%, #8134af 80%, #515bd4 100%);
    animation: live-ring-pulse 2.2s ease-in-out infinite;
    margin-bottom: 0.875rem;
    text-decoration: none;
}

.avatar-live-ring .profile-avatar {
    outline: 2.5px solid var(--bg, #f8fafc);
    margin-bottom: 0;
}

.avatar-live-ring .live-badge {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 10px;
    letter-spacing: 1.2px;
    white-space: nowrap;
    border: 2px solid var(--bg, #f8fafc);
    box-shadow: 0 1px 6px rgba(239, 68, 68, 0.45);
    user-select: none;
}

/* ── Uçuşan Kalpler ─────────────────────────────────────────────────── */
@keyframes floatUp {
    0%   { transform: translate(var(--hx, 0px), 0px) scale(0); opacity: 1; }
    20%  { transform: translate(calc(var(--hx, 0px) * .5), -40px) scale(1.2); opacity: 1; }
    60%  { transform: translate(var(--hx, 0px), -120px) scale(1); opacity: .9; }
    100% { transform: translate(calc(var(--hx, 0px) * 1.5), -220px) scale(.8); opacity: 0; }
}

.floating-heart {
    position: absolute;
    bottom: 90px;
    right: 28px;
    width: 30px;
    height: 30px;
    pointer-events: none;
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
    animation: floatUp 1.8s ease-out forwards;
    z-index: 50;
    user-select: none;
}

/* ── Listing tile like chip ─────────────────────────────────────────── */
.tile-like-chip {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,.45);
    border-radius: 20px;
    padding: 3px 7px 3px 5px;
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: transform .15s;
    z-index: 2;
}
.tile-like-chip:active { transform: scale(.9); }
.tile-like-chip svg { flex-shrink: 0; }

@keyframes live-ring-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(221, 42, 123, 0.55),
                    0 0 0 0 rgba(245, 133, 41, 0.35);
    }
    50% {
        box-shadow: 0 0 18px 5px rgba(221, 42, 123, 0.2),
                    0 0 28px 8px rgba(245, 133, 41, 0.1);
    }
}

/* ── AdSense Native In-Feed Reklam Kartı ───────────────────────────── */
.teqlif-ad-container {
    position: relative;
    background: var(--white, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    min-height: 100px;
}
.ad-badge {
    position: absolute;
    top: 7px;
    right: 9px;
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.3px;
    background: rgba(241,245,249,0.92);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;
}
/* Liste görünümü: ilan listesi içine girdiğinde tam genişlik */
.listing-list .teqlif-ad-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
.listing-list .teqlif-ad-container:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid #f1f5f9;
}
/* Grid görünümü: kart boyutuna uyum */
.listing-list.view-grid .teqlif-ad-container {
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    min-height: 150px;
}
/* Keşfet grid'i */
.listings-grid .teqlif-ad-container,
.search-listings-grid .teqlif-ad-container {
    min-height: 140px;
}
