/*!
Theme Name: jaysin
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Premium Property Investment Theme
Version: 1.0.0
Tested up to: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jaysin
*/

/* ==========================================================================
   1. GENERIC & NORMALIZE (UNDERSCORES BASE)
   ========================================================================== */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: #fff; color: #404040; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 1rem; line-height: 1.5; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; clear: both; }
h2, h3, h4, h5, h6 { clear: both; }
p { margin-bottom: 1.5em; }
hr { box-sizing: content-box; height: 0; overflow: visible; background-color: #ccc; border: 0; height: 1px; margin-bottom: 1.5em; }
pre { font-family: monospace, monospace; font-size: 1em; background: #eee; line-height: 1.6; margin-bottom: 1.6em; max-width: 100%; overflow: auto; padding: 1.6em; }
a { background-color: transparent; color: #4169e1; text-decoration: none; }
a:visited { color: #800080; }
a:hover, a:focus, a:active { color: #191970; outline: 0; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
img { border-style: none; height: auto; max-width: 100%; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
textarea { overflow: auto; width: 100%; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* ==========================================================================
   2. JAYS INVESTMENT - LAYOUT & DESKTOP SIDEBAR
   ========================================================================== */
#page.site {
    display: flex !important;
    min-height: 100vh;
    flex-direction: row;
}

/* Sabit Siyah Sol Panel */
#masthead.site-header {
    width: 320px;
    background-color: var(--jays-sidebar-bg, #000000);
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 60px 40px;
    box-sizing: border-box;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

#masthead .custom-logo-link img { max-width: 100%; height: auto; margin-bottom: 25px; display: block; }
#masthead .site-title { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 5px 0; }
#masthead .site-title a { color: #ffffff; text-decoration: none; }
#masthead .site-description { color: #888888; font-size: 13px; margin-bottom: 60px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Dinamik Sağ İçerik */
#content.site-content {
    margin-left: 320px;
    width: calc(100% - 320px);
    background-color: var(--jays-content-bg, #ffffff);
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
}

#primary.site-main { flex-grow: 1; padding: 0; width: 100%; }
#secondary { display: none !important; }

/* ==========================================================================
   3. PREMIUM MENU (SIDEBAR) STYLING
   ========================================================================== */
#site-navigation.main-navigation { flex-grow: 1; display: block; }
#site-navigation ul { list-style: none; padding: 0; margin: 30px 0 0 0; }
#site-navigation ul li { border-bottom: none !important; margin-bottom: 8px !important; display: block; }
.menu-toggle { display: none !important; }

#site-navigation ul li a {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    padding: 15px 0 15px 20px !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 0px solid transparent !important;
    display: flex;
    align-items: center;
}

#site-navigation ul li a::before { display: none !important; }

#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item > a {
    background-color: transparent !important;
    color: #ffffff !important;
    padding-left: 30px !important;
    border-left: 3px solid var(--jays-accent-color, #D32F2F) !important;
}

/* Sidebar İletişim Bilgileri */
.sidebar-contact-info {
    margin-top: 40px;
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
}
.sidebar-contact-info p { margin-bottom: 12px; }
.sidebar-contact-info a { display: block; color: #cccccc; text-decoration: none; margin-bottom: 8px; transition: color 0.3s ease; }
.sidebar-contact-info a.contact-phone {
    color: var(--jays-accent-color, #D32F2F) !important;
    font-weight: 700;
    font-size: 16px !important;
    letter-spacing: 1.5px !important;
    margin-top: 5px !important;
}
.sidebar-contact-info a:hover { color: #ffffff !important; }

/* ==========================================================================
   4. HOME PAGE SLIDER (HERO)
   ========================================================================== */
.hero-slider { width: 100%; height: 75vh; min-height: 500px; background-color: #000000; overflow: hidden; margin-bottom: 0; }
.slide-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%); z-index: 1; }

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 0 8% 80px 8% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative;
}

.slide-content { position: relative; z-index: 2; width: 100%; max-width: 650px; margin-top: auto !important; }
.slide-title { font-size: 48px !important; font-weight: 700 !important; margin-bottom: 15px !important; text-transform: uppercase !important; color: #ffffff !important; line-height: 1.1 !important; letter-spacing: 1.5px; }
.slide-desc { font-size: 18px !important; margin-bottom: 30px !important; color: #dddddd !important; line-height: 1.6 !important; font-weight: 300; }

.slide-btn {
    display: inline-block;
    background-color: var(--jays-accent-color, #D32F2F);
    color: #ffffff !important;
    padding: 16px 40px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: background-color 0.3s ease;
}
.slide-btn:hover { background-color: #ffffff; color: var(--jays-accent-color, #D32F2F) !important; }

/* ==========================================================================
   YUVARLAK SAYAÇ (PROGRESS CIRCLE) ANİMASYON DÜZELTMESİ
   ========================================================================== */
.autoplay-progress {
    position: absolute;
    right: 50px;
    bottom: 50px;
    z-index: 10;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Şık Detay: Çemberin arkasında duran silik/yarı saydam iz */
.autoplay-progress::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 1;
}

.autoplay-progress svg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 2px;
    stroke: var(--jays-accent-color, #D32F2F); /* Senin altın rengini alır */
    fill: none;
    /* r=20 olan çemberin matematiksel tam çevresi: 125.6 */
    stroke-dasharray: 125.6; 
    /* JS'den gelen saniye değişkenine göre çemberin dolmasını sağlar */
    stroke-dashoffset: calc(125.6 * var(--progress)); 
    transform: rotate(-90deg); /* Çizimin saat 12 yönünden başlaması için */
}

.autoplay-progress span {
    position: relative;
    z-index: 11;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-left: 3px;
    color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 992px) {
    .autoplay-progress { right: 20px; bottom: 20px; width: 45px; height: 45px; }
    .autoplay-progress span { font-size: 10px; }
}
/* ==========================================================================
   5. PAGE CONTENTS & ALIGNMENTS
   ========================================================================== */
.front-page-content, .services-overview { padding-top: 0 !important; }
.entry-content { margin-top: 0 !important; text-align: left; margin: 0 auto !important; }
.front-page-content, .entry-content, .page-content { padding: 50px 60px; max-width: 1200px; margin: 0 auto; }

/* Diğer Sayfalar Merkez Başlık */
.entry-header { text-align: center !important; padding-top: 40px !important; padding-bottom: 20px !important; width: 100% !important; }
.entry-title { font-size: 36px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; margin-bottom: 30px !important; display: inline-block !important; position: relative !important; }
.entry-title::after { content: ""; display: block; width: 60px; height: 3px; background-color: var(--jays-accent-color, #D32F2F); margin: 15px auto 0 auto; }

/* Footer */
.site-footer { background-color: var(--jays-content-bg, #ffffff); border-top: 1px solid rgba(0, 0, 0, 0.05); padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; margin-top: auto; }
.site-footer .footer-info { font-size: 13px; color: #666666; line-height: 1.8; }
.site-footer .legal-text { font-size: 11px; color: #999999; }
.site-footer .footer-links { display: flex; gap: 20px; justify-content: center; }
.site-footer .footer-links a { color: #333333; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; transition: color 0.2s ease; }
.site-footer .footer-links a:hover { color: var(--jays-accent-color, #D32F2F); }

/* ==========================================================================
   6. UI COMPONENTS (Modal, Forms, Harita, Sabit Telefon)
   ========================================================================== */
/* Sabit Telefon İkonu */
.mobile-floating-phone {
    display: flex !important; position: fixed !important; bottom: 40px !important; right: 40px !important; width: 60px !important; height: 60px !important;
    background-color: var(--jays-accent-color, #D32F2F) !important; color: #ffffff !important; border-radius: 50% !important; align-items: center !important;
    justify-content: center !important; z-index: 999999 !important; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important; transition: all 0.3s ease !important;
}
.mobile-floating-phone:hover { transform: translateY(-5px) !important; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important; }
.mobile-floating-phone svg { width: 24px !important; height: 24px !important; margin-right: -1px !important; }

/* Legal Modal */
.jays-modal { display: none; position: fixed; z-index: 9999999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.jays-modal.show { display: flex; align-items: center; justify-content: center; opacity: 1; }
.jays-modal-content { background-color: var(--jays-content-bg, #ffffff); color: #333333; margin: auto; padding: 50px 60px; border-top: 5px solid var(--jays-accent-color, #D32F2F); width: 90%; max-width: 650px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); max-height: 85vh; overflow-y: auto; }
.jays-modal-close { color: #999999; position: absolute; top: 15px; right: 25px; font-size: 32px; line-height: 1; font-weight: 300; cursor: pointer; transition: color 0.2s ease; }
.jays-modal-close:hover { color: var(--jays-accent-color, #D32F2F); }
.jays-modal-body h3 { margin-top: 0; color: #000000; text-transform: uppercase; font-size: 20px; letter-spacing: 1px; margin-bottom: 25px; }
.jays-modal-body p { line-height: 1.7; font-size: 13px; margin-bottom: 15px; color: #555555; }

/* Ana Sayfa Blokları */
.home-contact-section { background-color: #f5f5f5; padding: 100px 8%; }
.contact-container { display: flex; gap: 80px; align-items: flex-start; max-width: 1300px; margin: 0 auto; }
.contact-text-side { flex: 1; }
.contact-text-side h2 { font-size: 42px; font-weight: 800; color: #333; margin-bottom: 30px; letter-spacing: -1px; }
.contact-text-side p { font-size: 17px; line-height: 1.8; color: #666; }
.contact-form-side { flex: 1; background: #fff; padding: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: #333; margin-bottom: 10px; letter-spacing: 1px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #eee; background: #fafafa; font-size: 14px; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--jays-accent-color); background: #fff; }
.submit-btn { width: 100%; padding: 18px; background: #333; color: #fff; border: none; font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: 0.3s ease; }
.submit-btn:hover { background: var(--jays-accent-color); }
.home-map-block { position: relative; height: 450px; filter: grayscale(100%); transition: filter 0.6s ease; overflow: hidden; border-top: 1px solid #eee; }
.home-map-block:hover { filter: grayscale(0%); }
.home-map-block iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   7. FLAWLESS MOBILE RESPONSIVE (MAX 992PX)
   ========================================================================== */
@media screen and (max-width: 992px) {
    /* Genel Yapı */
    #page.site { flex-direction: column !important; }
    #content.site-content { margin-left: 0; width: 100%; }
    
    /* Mobil Header (LOGO SOLDA, MENÜ SAĞDA KESİN ÇÖZÜM) */
    #masthead.site-header {
        position: sticky; top: 0; width: 100%; height: 85px !important;
        padding: 0 20px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important; /* Sağ ve solu ayırır */
        align-items: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 99999 !important;
        overflow: visible !important;
    }

    /* Logo Alanı (Sola Yaslı) */
    #masthead .site-branding {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        max-width: 70%;
        margin: 0;
    }
    #masthead .custom-logo-link img { max-height: 55px !important; width: auto; margin: 0; }
    #masthead .site-title, #masthead .site-description { display: none; } /* Logonun yanında yazı çıkmasın */

    /* Menü Butonu Alanı (Sağa Yaslı) */
    #site-navigation.main-navigation {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        width: auto;
    }
    .menu-toggle {
        display: inline-block !important;
        font-size: 14px !important;
        padding: 10px 20px !important; 
        letter-spacing: 1.5px !important;
        border: 1px solid var(--jays-accent-color, #D32F2F) !important;
        color: var(--jays-accent-color, #D32F2F) !important;
        background-color: transparent;
        font-weight: 600 !important;
        border-radius: 3px !important;
        margin: 0;
        cursor: pointer;
    }
    .menu-toggle:active, .menu-toggle:focus { background-color: var(--jays-accent-color, #D32F2F) !important; color: #000000 !important; }

    /* Açılır Menü Listesi */
    #site-navigation ul, #site-navigation.main-navigation ul {
        position: absolute; top: 85px !important; left: 0; width: 100%;
        background-color: var(--jays-sidebar-bg, #000000);
        border-bottom: 2px solid var(--jays-accent-color, #D32F2F);
        padding: 0; margin: 0; display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    #site-navigation.toggled ul { display: block; }
    #site-navigation ul li { border-bottom: 1px solid rgba(255,255,255,0.05) !important; margin: 0 !important; }
    #site-navigation ul li a { padding: 16px 25px !important; font-size: 14px !important; border-left: none !important; color: #ffffff !important;}

    /* Slider Mobilde Ortalama */
    .hero-slider { height: 60vh; min-height: 450px; }
    .swiper-slide { padding-bottom: 60px !important; align-items: center !important; text-align: center !important; justify-content: flex-end !important; }
    .slide-title { font-size: 32px !important; }
    .slide-desc { font-size: 15px !important; margin-bottom: 25px !important; }
    .autoplay-progress { right: 20px; bottom: 20px; width: 45px; height: 45px; }

    /* Diğer Mobil Düzeltmeler */
    .sidebar-contact-info { display: none; }
    .mobile-floating-phone { bottom: 25px !important; right: 25px !important; width: 55px !important; height: 55px !important; }
    .jays-modal-content { padding: 40px 30px; width: 95%; }
    .contact-container { flex-direction: column; gap: 50px; }
    .contact-form-side { padding: 30px; }
    .front-page-content, .entry-content, .page-content { padding: 40px 20px; }
    .site-footer { padding: 40px 20px; }
    .site-footer .footer-links { flex-direction: column; gap: 15px; margin-top: 10px; }
}
/* ==========================================================================
   8. PROFESSIONAL SCROLL & LOAD ANIMATIONS (PREMIUM UPDATE)
   ========================================================================== */
/* Başlangıç Durumları (Görünmez ve Kaymış) */
.jays-animate {
    opacity: 0;
    will-change: opacity, transform;
    /* Süreyi 1.2 saniyeye çıkardık ve çok daha yumuşak (smooth) bir ivme verdik */
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Yönlendirme Sınıfları (Mesafeleri 40px'ten 60-70px'e çıkardık ki hareket çok net belli olsun) */
.jays-fade-up { transform: translateY(70px); }
.jays-fade-down { transform: translateY(-70px); }
.jays-fade-right { transform: translateX(-60px); }

/* Aktif (Görünür) Durum */
.jays-animate.is-visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Gecikmeler (Yan yana duran kutuların sırayla çıkması için aralıkları belirginleştirdik) */
.jays-delay-100 { transition-delay: 0.15s !important; }
.jays-delay-200 { transition-delay: 0.30s !important; }
.jays-delay-300 { transition-delay: 0.45s !important; }

/* ==========================================================================
   9. AJAX SAYFA GEÇİŞ ANİMASYONU
   ========================================================================== */
#content.site-content {
    /* Sayfalar arası geçerken içeriğin yumuşakça kaybolup gelmesi için */
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.page-is-loading {
    opacity: 0 !important;
    transform: translateY(30px) !important; /* Eski sayfa kaybolurken hafifçe aşağı düşer */
}
/* ==========================================================================
   11. DİKEY AKAN YAN ÇİZGİLER (PREMIUM SIDEBAR FLOW - SADECE MASAÜSTÜ)
   ========================================================================== */
@media screen and (min-width: 993px) {
    #masthead.site-header {
        /* position: relative kodunu sildik, orijinal sabit (fixed) yapısına geri döndü! */
        background-color: var(--jays-sidebar-bg, #000000) !important;
        border: none !important;
    }

    #masthead.site-header::before,
    #masthead.site-header::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2px;
        z-index: 10;
        background: linear-gradient(to bottom, 
            transparent, 
            var(--jays-accent-color, #D32F2F) 40%, 
            #ffffff 60%, 
            transparent
        ) !important;
        background-size: 100% 200% !important;
        animation: snakeBorderFlow 4s linear infinite;
    }

    #masthead.site-header::before {
        left: 0;
    }

    #masthead.site-header::after {
        right: 0;
        animation-delay: -2s;
    }
}

@keyframes snakeBorderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}
/* ==========================================================================
   12. JAYS MARKET TICKER & LIVE LONDON CLOCK
   ========================================================================== */
.jays-market-bar { display: flex; background-color: #0b0b0b; height: 50px; border-bottom: 1px solid rgba(255,255,255,0.05); overflow: hidden; position: relative; z-index: 10; }
.market-time { display: flex; align-items: center; background-color: var(--jays-accent-color, #D32F2F); color: #ffffff; padding: 0 30px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; white-space: nowrap; z-index: 2; box-shadow: 10px 0 20px rgba(0,0,0,0.5); }

/* SVG İkonunu zorla küçültüyoruz, bir daha asla ekranı kaplayamaz! */
.market-time svg { width: 18px !important; height: 18px !important; margin-right: 10px; flex-shrink: 0; }

.market-status-dot { width: 8px; height: 8px; background-color: #4caf50; border-radius: 50%; margin-left: 12px; animation: blinkDot 1.5s infinite ease-in-out; flex-shrink: 0; }
@keyframes blinkDot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; box-shadow: 0 0 8px #4caf50; } }

.market-ticker { flex-grow: 1; display: flex; align-items: center; overflow: hidden; position: relative; }
.ticker-track { display: flex; gap: 50px; white-space: nowrap; animation: tickerScroll 35s linear infinite; padding-left: 30px; }
.market-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track span { font-size: 13px; color: #888888; text-transform: uppercase; letter-spacing: 0.5px; }
.ticker-track strong { color: #ffffff; margin-left: 8px; font-size: 14px; }
.ticker-track .up { color: #4caf50; font-weight: 600; margin-left: 5px; }
.ticker-track .down { color: #f44336; font-weight: 600; margin-left: 5px; }
.ticker-track .neutral { color: #ffeb3b; font-weight: 600; margin-left: 5px; }

@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Mobil uyumluluk */
@media screen and (max-width: 992px) {
    .jays-market-bar { flex-direction: column; height: auto; }
    .market-time { justify-content: center; padding: 15px; width: 100%; }
    .market-ticker { height: 40px; }
}