/*
Theme Name: Semtin Yıldızı (Star of the Neighborhood)
Theme URI: https://semtinyildizi.com
Author: Semtin Yıldızı
Version: 2.0.0
Text Domain: semtin-yildizi
*/

/* ═══════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════ */
:root {
    --primary:   #6366f1;
    --primary-dark: #4f46e5;
    --accent:    #f59e0b;
    --dark:      #0f0f1a;
    --dark-2:    #1a1a2e;
    --dark-3:    #16213e;
    --text:      #e2e8f0;
    --text-muted:#94a3b8;
    --white:     #ffffff;
    --green:     #22c55e;
    --red:       #ef4444;
    --radius:    14px;
    --shadow:    0 20px 60px rgba(0,0,0,0.35);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   CONTAINERS
══════════════════════════════════════════ */
.sy-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.sy-container--wide { max-width: 1280px; }

/* ═══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.sy-hero {
    position: relative;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #0d1117 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 80px;
    text-align: center;
}

/* Animated background blobs */
.sy-hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.sy-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: floatBlob 8s ease-in-out infinite alternate;
}
.sy-shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -150px; animation-delay: 0s; }
.sy-shape-2 { width: 500px; height: 500px; background: #ec4899; bottom: -100px; right: -100px; animation-delay: 2s; }
.sy-shape-3 { width: 350px; height: 350px; background: var(--accent); top: 40%; left: 50%; transform: translateX(-50%); animation-delay: 4s; }

@keyframes floatBlob {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.1) translateY(-30px); }
}

.sy-hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.sy-badge {
    display: inline-block;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.4);
    color: #a5b4fc;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

.sy-hero-title {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.sy-gradient-text {
    background: linear-gradient(90deg, #6366f1, #f59e0b, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sy-hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.75;
}
.sy-hero-desc strong { color: var(--white); }

.sy-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.sy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.sy-btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}
.sy-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(99,102,241,0.55);
}
.sy-btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
}
.sy-btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    transform: translateY(-2px);
}
.sy-btn-lg { padding: 18px 46px; font-size: 17px; }

/* ═══════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
.sy-stats-strip {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 32px 0;
}
.sy-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.sy-stat { text-align: center; padding: 12px 48px; }
.sy-stat-num {
    display: block;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}
.sy-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.sy-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
}

/* ═══════════════════════════════════════
   SECTIONS - SHARED
══════════════════════════════════════════ */
.sy-section { padding: 90px 0; }
.sy-how-it-works { background: var(--dark); }
.sy-section-header { text-align: center; margin-bottom: 56px; }
.sy-section-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.sy-section-sub { font-size: 18px; color: var(--text-muted); }

/* ═══════════════════════════════════════
   HOW IT WORKS - STEPS
══════════════════════════════════════════ */
.sy-steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sy-step {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    transition: transform 0.3s, border-color 0.3s;
}
.sy-step:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.5);
}
.sy-step-icon { font-size: 36px; margin-bottom: 10px; }
.sy-step-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.sy-step h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.sy-step p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.sy-step-arrow {
    font-size: 28px;
    color: var(--primary);
    opacity: 0.5;
    padding: 0 4px;
}

/* ═══════════════════════════════════════
   MAP SECTION
══════════════════════════════════════════ */
.sy-map-section { background: var(--dark-2); }

.sy-map-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.sy-legend-item { display: flex; align-items: center; gap: 6px; }
.sy-legend-available { color: #4ade80; }
.sy-legend-sold      { color: #f87171; }

.sy-map-wrapper {
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #1e2a3a;
}

#sy-map-container {
    width: 100%;
    height: 58vh;
    min-height: 360px;
    z-index: 1;
}

/* ═══════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════ */
.sy-features { background: var(--dark); }
.sy-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.sy-feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, background 0.3s;
}
.sy-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(99,102,241,0.07);
    border-color: rgba(99,102,241,0.3);
}
.sy-feature-icon { font-size: 34px; margin-bottom: 16px; }
.sy-feature-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.sy-feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ═══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════ */
.sy-cta-section {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--dark-3), #0f0724);
}
.sy-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.sy-cta-inner h2 {
    font-size: clamp(24px,4vw,38px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.sy-cta-inner p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* ═══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
#sy-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    height: 100vh;
    background: var(--dark-2);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    z-index: 10000;
    transition: right 0.35s cubic-bezier(0.16,1,0.3,1);
    padding: 28px;
    overflow-y: auto;
}
#sy-sidebar.active { right: 0; }

.sy-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.sy-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}
.sy-close-sidebar {
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: var(--text-muted);
    transition: color 0.2s;
}
.sy-close-sidebar:hover { color: var(--white); }

/* ═══════════════════════════════════════
   MAP LABELS & STATUS
══════════════════════════════════════════ */
.path-available { fill: #22c55e; fill-opacity: 0.65; stroke: rgba(0,0,0,0.3); stroke-width: 0.5; }
.path-sold      { fill: #ef4444; fill-opacity: 0.75; stroke: rgba(0,0,0,0.3); stroke-width: 0.5; }
.path-hover     { fill-opacity: 0.95; cursor: pointer; }

/* Logo overlay on sold districts */
.sy-logo-overlay {
    cursor: pointer !important;
    object-fit: contain;
    pointer-events: auto !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: opacity 0.2s;
}
.sy-logo-overlay:hover { opacity: 0.85; }

.sy-city-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 8.5px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.7);
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 65px !important;
    pointer-events: none;
}
.sy-city-label::before { display: none !important; }

/* ═══════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.sy-footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 64px 0 32px;
}
.sy-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}
.sy-footer-brand-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.sy-footer-brand-logo span { color: var(--accent); }
.sy-footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.sy-footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.sy-footer-col ul { list-style: none; }
.sy-footer-col ul li { margin-bottom: 10px; }
.sy-footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.sy-footer-col ul li a:hover { color: var(--white); }
.sy-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.sy-footer-bottom p { font-size: 13px; color: var(--text-muted); }
.sy-footer-bottom a { color: var(--text-muted); text-decoration: none; }
.sy-footer-bottom a:hover { color: var(--white); }

/* Buy button inside sidebar */
.sy-buy-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 10px;
    font-size: 16px;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 6px 24px rgba(99,102,241,0.4);
}
.sy-buy-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.sy-buy-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ═══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .sy-footer-grid { grid-template-columns: 1fr 1fr; }
    .sy-steps-grid { flex-direction: column; align-items: stretch; }
    .sy-step-arrow { display: none; }
    .sy-stat-divider { display: none; }
    .sy-stats-grid { gap: 8px; }
    .sy-stat { padding: 16px 24px; }
}

@media (max-width: 600px) {
    .sy-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    #sy-sidebar { width: 100%; right: -100%; }
    .sy-hero { min-height: 80vh; }
    .sy-hero-actions { flex-direction: column; align-items: center; }
    .sy-map-wrapper { border-radius: 8px; }
    #sy-map-container { height: 46vh; }
    .sy-footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════
   MAP LOGOS
══════════════════════════════════════════ */
.sy-map-logo-marker {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sy-map-logo-marker img {
    max-width: 140px;
    max-height: 50px;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sy-map-logo-marker img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.7));
}

.leaflet-div-icon {
    background: transparent;
    border: none;
}
