/*
Theme Name: Kolay Degerleme (Corporate Pro)
Theme URI: https://kolaydegerleme.com
Author: kolaydegerleme.com
Author URI: https://kolaydegerleme.com
Description: Kurumsal estetik ve üst düzey görsellere sahip profesyonel gayrimenkul değerleme teması.
Version: 3.3.0
Text Domain: kolaydegerleme
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Requires PHP: 7.4
Tags: business, real-estate, valuation, corporate
*/

/* 1. Google Fonts Import - Must be at the top */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* 2. Variables & Design Tokens */
:root {
    /* Brand Colors - Fintech/Proptech Palette */
    --color-primary: #0F172A;
    /* Slate 900 - Trust, Authority */
    --color-secondary: #334155;
    /* Slate 700 */
    --color-accent: #2563EB;
    /* Royal Blue - Call to Action */
    --color-accent-hover: #1D4ED8;
    --color-highlight: #F59E0B;
    /* Amber - Attention/Value */
    --color-success: #10B981;
    /* Emerald - Positive results */
    --color-bg-light: #F8FAFC;
    --color-bg-white: #FFFFFF;

    /* Text Colors */
    --text-dark: #0F172A;
    --text-body: #475569;
    /* Slate 600 for better readability */
    --text-light: #94A3B8;
    --text-white: #FFFFFF;

    /* Spacing & Layout */
    --container-width: 1440px;
    --header-height: 80px;
    --section-spacing: 6rem;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    /* Headings */
    --font-sans: 'Inter', sans-serif;
    /* Body */
}

/* 3. Base Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    margin: 0 0 1rem;
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 900px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* 3. Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    min-width: 156px;
    min-height: 52px;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline-dark {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-dark:hover {
    background: var(--color-primary);
    color: white;
}

/* 4. Layout Sections */
.site-main,
main#primary {
    background-color: var(--color-bg-light);
}

section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: block;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-body);
}

/* 5. Header */
.site-header {
    background: white;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 122px;
    /* Top bar 32px + Main header 80px + margin? */
}

.top-bar {
    background: var(--color-primary);
    color: #94A3B8;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.top-bar a:hover {
    color: white;
}

.header-main {
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    max-height: 50px;
    display: flex;
    align-items: center;
}

.site-logo img,
.custom-logo-link img {
    max-height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
    font-family: var(--font-sans);
    letter-spacing: -1px;
}

.site-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.main-navigation a:hover {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 6. Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background-color: var(--color-primary);
    color: white;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60A5FA;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero-title {
    color: white;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

/* Decorative blob */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

/* 7. Features / How it Works */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 8. Trust Section */
.trust-section {
    background: #F1F5F9;
    text-align: center;
    padding: 4rem 0;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    opacity: 0.6;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.trust-logos img {
    max-height: 40px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.trust-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 9. Blog/Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-meta {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 10. Footer */
.site-footer {
    background: var(--color-primary);
    color: #94A3B8;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-widget h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* 11. Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 12. Responsive */
@media (max-width: 900px) {
    .site-header {
        min-height: auto;
    }

    .header-main {
        height: auto;
        padding: 0.5rem 0;
    }

    .header-main .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    /* Show hamburger on mobile */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Hide nav+actions wrapper on mobile, show when active */
    .mobile-menu-wrapper {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #E2E8F0;
        margin-top: 0.5rem;
    }

    .mobile-menu-wrapper.active {
        display: flex;
    }

    /* Stack nav links vertically on mobile */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #F1F5F9;
    }

    /* Stack header action buttons */
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

    .header-actions .user-menu-wrap {
        width: 100%;
    }

    .header-actions .user-menu-wrap>.btn {
        width: 100%;
    }

    /* Top bar adjustments */
    .top-bar .container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero-section {
        padding: 4rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        display: none;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Section Spacing */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 12. Dashboard Styles (Partial) */
.dashboard-wrapper {
    display: flex;
    min-height: 80vh;
    background: #F8FAFC;
}

/* Desktop: sidebar toggle gizli */
.kd-sidebar-toggle {
    display: none !important;
}

@media (max-width: 900px) {
    .dashboard-wrapper {
        display: block !important;
        min-height: auto;
    }

    .panel-sidebar {
        width: 100% !important;
        position: relative;
    }

    /* Mobil: sidebar navigasyonu varsayılan gizli, toggle ile açılır */
    .panel-sidebar .panel-nav {
        display: none;
        flex-direction: column;
        padding: 0 16px 12px;
    }

    .panel-sidebar .panel-nav.mobile-open {
        display: flex !important;
    }

    /* Sidebar brand yanına hamburger toggle eklenmesi (JS ile) */
    .panel-sidebar .sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .kd-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(255,255,255,0.15);
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .kd-sidebar-toggle:hover {
        background: rgba(255,255,255,0.25);
    }

    /* user-mini-profile mobilde gizle (gereksiz alan kaplar) */
    .panel-sidebar .user-mini-profile {
        display: none;
    }

    .panel-content {
        width: 100% !important;
    }
}

/* ... (Further dashboard styles will be in plugin) ... */
/* User Menu Dropdown */
.user-menu-wrap {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0.5rem 0;
}

.user-menu-wrap:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #F8FAFC;
    color: var(--color-accent);
}

.user-dropdown a.logout-item {
    color: #EF4444;
    border-top: 1px solid #F1F5F9;
}


/* 13. Market Ticker - Doviz.com Style */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.marquee-content {
    display: flex !important;
    /* Force flex for horizontal */
    flex-direction: row !important;
    animation: marquee 60s linear infinite;
    width: max-content;
}

.dv-ticker-item {
    display: flex;
    flex-direction: column;
    padding: 0 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    min-width: 160px;
}

.dv-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.dv-flag {
    font-size: 1rem;
    color: #cbd5e1;
}

.dv-name {
    font-size: 11px;
    color: #aebfd1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dv-val-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dv-val {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.dv-change {
    font-size: 10px;
    font-weight: 700;
}

.trend-up {
    color: #4ade80;
}

.trend-down {
    color: #ef4444;
}

/* Hover to pause */
.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 14. Registration Page Styling */
.page-id-7,
.page-id-7 #page,
.page-id-7 #primary,
.page-id-7 .site-main {
    background-color: #0F172A !important;
}

.page-id-7 .entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-id-7 .entry-title {
    color: white !important;
    font-size: 2rem;
    font-weight: 700;
}

.page-id-7 .kd-form-wrapper {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 20px auto 60px;
}

/* Fix for form labels inside the white box */
.page-id-7 .kd-form-wrapper label {
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-id-7 .kd-form-wrapper .form-control {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
}

/* Hide legacy */
.market-attribution,
.ticker-card,
.t-icon-box,
.t-info,
.ticker-item {
    display: none;
}