/**
 * UI Enhanced - beans.talk inspired, Ersin Emlak identity
 * Soft shadows, rounded 16-24px, flat depth, smooth section transitions
 * Renk paleti index.php :root'tan (primary, accent-gold, dark-bg) - değiştirilmedi
 */

/* ========== CSS Variables (override only for beans.talk feel) ========== */
:root {
    --ui-card-radius: 20px;
    --ui-card-radius-lg: 24px;
    --ui-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.12);
    --ui-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
    --ui-shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 215, 0, 0.08);
    --ui-shadow-btn-glow: 0 0 20px rgba(255, 215, 0, 0.25);
    --ui-transition-card: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --ui-section-spacing: clamp(4rem, 10vw, 7rem);
}

/* ========== Hero - Kompakt yükseklik (arka alan küçültüldü) ========== */
.hero-section {
    width: 100%;
    min-height: 60vh;
    min-height: 65dvh;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section .hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(26,26,26,0.88) 50%, rgba(0,0,0,0.82) 100%);
    z-index: 0;
}

.hero-section .hero-swiper,
.hero-section .swiper {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    min-height: 65dvh;
    position: relative;
    z-index: 1;
}

.hero-section .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 6vw, 4.5rem) 1rem clamp(2rem, 5vw, 3rem);
    box-sizing: border-box;
}

/* Slide content wrapper - staggered animation parent */
.hero-slide-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Staggered text animation classes (used by JS or AOS) */
.hero-slide-inner .hero-stagger-1 { animation: heroStagger 0.6s ease-out both; }
.hero-slide-inner .hero-stagger-2 { animation: heroStagger 0.6s ease-out 0.1s both; }
.hero-slide-inner .hero-stagger-3 { animation: heroStagger 0.6s ease-out 0.2s both; }
.hero-slide-inner .hero-stagger-4 { animation: heroStagger 0.6s ease-out 0.35s both; }

@keyframes heroStagger {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Global mesaj kutuları: sarı/siyah cam tema */
:root {
    --emlak-alert-gold: #FFD700;
    --emlak-alert-dark: rgba(15, 15, 15, 0.88);
    --emlak-alert-border: rgba(255, 215, 0, 0.28);
}

body .alert {
    position: relative;
    overflow: hidden;
    border-radius: 18px !important;
    border: 1px solid var(--emlak-alert-border) !important;
    border-left: 4px solid var(--emlak-alert-gold) !important;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.17), transparent 36%),
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), var(--emlak-alert-dark)) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

body .alert strong,
body .alert b {
    color: #fff !important;
}

body .alert a,
body .alert .alert-link {
    color: var(--emlak-alert-gold) !important;
    font-weight: 800;
    text-decoration: none;
}

body .alert a:hover,
body .alert .alert-link:hover {
    color: #FFE66D !important;
    text-decoration: underline;
}

body .alert-success {
    border-left-color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 36%),
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(10, 18, 15, 0.9)) !important;
    color: rgba(220, 252, 231, 0.96) !important;
}

body .alert-danger {
    border-left-color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.32) !important;
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 36%),
        linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(24, 12, 12, 0.9)) !important;
    color: rgba(254, 226, 226, 0.96) !important;
}

body .alert-warning,
body .alert-info,
body .alert-secondary,
body .alert-light {
    border-left-color: var(--emlak-alert-gold) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body .invalid-feedback,
body .valid-feedback {
    margin-top: 0.45rem;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background: rgba(15, 15, 15, 0.78);
    color: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body .invalid-feedback {
    border-color: rgba(239, 68, 68, 0.32);
    color: #fecaca !important;
}

body .valid-feedback {
    border-color: rgba(34, 197, 94, 0.28);
    color: #bbf7d0 !important;
}

body .form-control.is-invalid,
body .was-validated .form-control:invalid,
body .form-select.is-invalid,
body .was-validated .form-select:invalid {
    border-color: rgba(239, 68, 68, 0.72) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.1) !important;
}

body .form-control.is-valid,
body .was-validated .form-control:valid,
body .form-select.is-valid,
body .was-validated .form-select:valid {
    border-color: rgba(34, 197, 94, 0.62) !important;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.09) !important;
}

body .emlak-runtime-alerts {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 1060;
    width: min(440px, calc(100vw - 32px));
    pointer-events: none;
}

body .emlak-runtime-alerts .panel-runtime-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    pointer-events: auto;
}

body .emlak-runtime-alerts .panel-runtime-alert i {
    color: var(--emlak-alert-gold) !important;
    margin-top: 2px;
}

@media (max-width: 768px) {
    body .emlak-runtime-alerts {
        top: 64px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* Swiper fade + slight scale effect */
.hero-section .swiper-slide-active .hero-slide-inner {
    animation: slideScaleIn 0.7s ease-out both;
}

@keyframes slideScaleIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Swiper navigation - clean arrows */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    color: var(--accent-gold);
    background: rgba(26, 26, 26, 0.6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: var(--ui-transition-card);
}

.hero-section .swiper-button-next:after,
.hero-section .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--accent-gold);
    box-shadow: var(--ui-shadow-btn-glow);
}

/* Hero pagination - minimal dots */
.hero-section .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: var(--ui-transition-card);
}

.hero-section .swiper-pagination-bullet-active {
    background: var(--accent-gold);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    /* Ok butonları küçük ve alt kısımda — metinle çakışmasın */
    .hero-section .swiper-button-next,
    .hero-section .swiper-button-prev {
        width: 34px;
        height: 34px;
        /* Dikey: alt padding alanına yerleştir */
        top: auto;
        bottom: 1rem;
        /* Yatay: kenara yakın ama metinden uzak */
        --swiper-navigation-sides-offset: 8px;
    }
    .hero-section .swiper-button-next:after,
    .hero-section .swiper-button-prev:after {
        font-size: 0.85rem;
    }
    /* Pagination da aynı alana gider, ortaya sıkıştır */
    .hero-section .swiper-pagination {
        bottom: 1.25rem;
    }
    /* Slide içeriği — okların kapladığı yatay alandan kaç */
    .hero-section .swiper-slide {
        padding-left: 3.5rem !important;
        padding-right: 3.5rem !important;
    }
}

/* ========== Section structure - breathing room, smooth scroll ========== */
section {
    scroll-margin-top: 100px;
}

.section-spaced {
    padding-top: var(--ui-section-spacing);
    padding-bottom: var(--ui-section-spacing);
}

/* ========== Neden Biz - sadece düzenlenebilir kartlar (geçiş yok) ========== */
.section-avantajlar {
    background: var(--dark-bg);
}

.avantaj-card {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: var(--ui-card-radius);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--ui-shadow-card);
    transition: transform var(--ui-transition-card), box-shadow var(--ui-transition-card);
}

.avantaj-card:hover {
    transform: scale(1.02);
    box-shadow: var(--ui-shadow-card-hover);
}

.avantaj-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.avantaj-card-title {
    font-family: var(--font-body);
    font-weight: 700;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
}

.avantaj-card-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    margin: 0;
}

/* ========== Değerinde Sat CTA - tek satır ========== */
.section-cta {
    background: var(--dark-bg);
}

.cta-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    margin: 0;
}

/* ========== Cards - beans.talk feel (soft shadow, rounded, hover lift) ========== */
.property-card,
.stat-card {
    border-radius: var(--ui-card-radius) !important;
    box-shadow: var(--ui-shadow-card) !important;
    transition: transform var(--ui-transition-card), box-shadow var(--ui-transition-card) !important;
}

.property-card:hover,
.stat-card:hover {
    transform: scale(1.03) translateY(-4px) !important;
    box-shadow: var(--ui-shadow-card-hover) !important;
}

/* Buttons - soft glow on hover */
.btn-primary:hover {
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 0 24px rgba(255, 215, 0, 0.2) !important;
}

/* ========== Stats section - light card feel ========== */
.stats-section .stat-card {
    background: rgba(26, 26, 26, 0.5) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: var(--ui-card-radius-lg) !important;
}

/* ========== AOS - subtle delays (50-150ms) ========== */
[data-aos="fade-up"] { }
[data-aos="fade-left"] { }
[data-aos="fade-right"] { }

/* Touch devices: disable hover scale to avoid sticky transform */
@media (hover: none) and (pointer: coarse) {
    .property-card:hover,
    .stat-card:hover,
    .avantaj-card:hover {
        transform: none !important;
    }
}

/* ========== MOBİL OPTİMİZASYON (<768px) ========== */
@media (max-width: 767.98px) {
    /* Hero swiper geçiş hızı mobilde daha hızlı */
    .hero-section .swiper-slide {
        padding: 4.5rem 0.75rem 2rem !important;
    }

    /* Avantaj kartı — dokunuşta hafif basma efekti */
    .avantaj-card {
        transition: transform 0.12s ease, box-shadow 0.12s ease !important;
    }
    .avantaj-card:active {
        transform: scale(0.97) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
    }

    /* Stat kartları — dokunuşta altın pulse */
    .stats-section .stat-card {
        transition: transform 0.12s ease !important;
    }
    .stats-section .stat-card:active {
        transform: scale(0.95) !important;
    }

    /* Section spacing azalt */
    :root {
        --ui-section-spacing: clamp(1.5rem, 5vw, 2.5rem);
    }
}
