/**
 * Batarya Yenileme Merkezi - Modern Premium Design Engine
 * Color Palette:
 * Primary: #087A3D | Secondary: #16A765 | Light Accent: #EAF8F0
 * Dark Text: #17211B | Muted Text: #526058 | Background: #F7FAF8
 */

:root {
    --bym-primary: #087A3D;
    --bym-primary-hover: #065f2f;
    --bym-secondary: #16A765;
    --bym-secondary-hover: #128c54;
    --bym-accent: #EAF8F0;
    --bym-text: #17211B;
    --bym-text-muted: #526058;
    --bym-bg: #F7FAF8;
    --bym-card-bg: #FFFFFF;
    --bym-border: #E2E8F0;
    --bym-radius: 16px;
    --bym-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --bym-shadow-md: 0 10px 25px -5px rgba(8, 122, 61, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    --bym-shadow-hover: 0 18px 36px -8px rgba(8, 122, 61, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

/* Frontend Body Styles */
body:not(.admin-body) {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bym-bg) !important;
    color: var(--bym-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Sticky Navbar */
body:not(.admin-body) header.sticky-top,
body:not(.admin-body) .bym-navbar {
    z-index: 1040 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bym-border);
    transition: all 0.3s ease;
}

/* BRAND LOGO & SPACING STYLES */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.navbar-brand img {
    flex-shrink: 0 !important;
    margin-right: 14px !important;
    display: inline-block !important;
    border-radius: 10px;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap !important;
}

.brand-logo-text .line-1 {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    color: #17211B;
}

.brand-logo-text .line-2 {
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--bym-primary);
}

.footer-brand-text .line-1 {
    color: #FFFFFF !important;
}

.footer-brand-text .line-2 {
    color: var(--bym-secondary) !important;
}

/* Nav Links */
.bym-navbar .nav-link {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.bym-navbar .nav-link:hover,
.bym-navbar .nav-link.active {
    color: var(--bym-primary) !important;
    font-weight: 700;
}

/* Primary Button Styling */
.btn-bym-primary {
    background-color: var(--bym-primary) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.7rem 1.6rem;
    border: none;
    box-shadow: 0 6px 18px rgba(8, 122, 61, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-bym-primary:hover {
    background-color: var(--bym-primary-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(8, 122, 61, 0.35);
}

.btn-outline-bym {
    background-color: #FFFFFF;
    color: var(--bym-primary) !important;
    border: 1.5px solid var(--bym-primary) !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.7rem 1.6rem;
    transition: all 0.3s ease;
}

.btn-outline-bym:hover {
    background-color: var(--bym-accent) !important;
    color: var(--bym-primary-hover) !important;
    transform: translateY(-2px);
}

/* TYPOGRAPHY & UNIFIED FONT SYSTEM */
h1, h2, h3, h4, h5, h6 {
    color: var(--bym-text);
    letter-spacing: -0.02em;
}

h1.display-3, .display-3 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

h1.display-4, .display-4 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

h2.display-6, .display-6 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

.page-main-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--bym-primary) !important;
    letter-spacing: -0.025em;
}

/* HERO SECTION */
.bym-hero {
    position: relative;
    padding: 55px 0 55px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bym-bg) 100%);
    border-bottom: 1px solid var(--bym-border);
}

.bym-hero-badge {
    background-color: var(--bym-accent);
    color: var(--bym-primary);
    border: 1px solid rgba(8, 122, 61, 0.2);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bym-hero-title {
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.035em;
    line-height: 1.12;
    font-size: clamp(2.4rem, 5.2vw, 4.1rem) !important;
    margin-bottom: 1.25rem;
}

.bym-hero-title span.text-highlight {
    background: linear-gradient(135deg, #087A3D 0%, #16A765 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bym-hero-subtitle {
    color: var(--bym-text-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    max-width: 580px;
}

/* STATS KARTLARI */
.bym-stat-card {
    background-color: var(--bym-card-bg);
    border: 1px solid var(--bym-border);
    border-radius: var(--bym-radius);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--bym-shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.bym-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bym-shadow-md);
    border-color: var(--bym-secondary);
}

.bym-stat-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bym-accent);
    color: var(--bym-primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.bym-stat-number {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--bym-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.bym-stat-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--bym-text);
}

/* HİZMET KARTLARI */
.bym-glass-card {
    background: var(--bym-card-bg);
    border: 1px solid var(--bym-border);
    border-radius: var(--bym-radius);
    box-shadow: var(--bym-shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bym-glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bym-shadow-hover);
    border-color: var(--bym-secondary);
}

.service-card-img-wrapper {
    height: 220px !important;
    width: 100% !important;
    overflow: hidden;
    position: relative;
    background-color: #F8FAFC;
    border-bottom: 1px solid var(--bym-border);
}

.service-card-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bym-glass-card:hover .service-card-img {
    transform: scale(1.06);
}

.bym-card-title {
    font-weight: 800;
    color: var(--bym-primary) !important;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

/* NASIL ÇALIŞIYORUZ (PROCESS STEPS) */
.bym-process-step {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--bym-border);
    border-radius: var(--bym-radius);
    padding: 30px 24px;
    text-align: center;
    height: 100%;
    box-shadow: var(--bym-shadow-sm);
    transition: all 0.3s ease;
}

.bym-process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--bym-shadow-md);
    border-color: var(--bym-primary);
}

.bym-step-number {
    width: 48px;
    height: 48px;
    background-color: var(--bym-primary);
    color: #FFFFFF;
    font-weight: 900;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(8, 122, 61, 0.3);
}

/* ADVANTAGES / NEDEN BİZ */
.bym-advantage-card {
    background: #FFFFFF;
    border: 1px solid var(--bym-border);
    border-radius: var(--bym-radius);
    padding: 24px;
    display: flex;
    align-items: start;
    gap: 16px;
    box-shadow: var(--bym-shadow-sm);
    transition: all 0.3s ease;
}

.bym-advantage-card:hover {
    border-color: var(--bym-secondary);
    box-shadow: var(--bym-shadow-md);
}

.bym-advantage-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background-color: var(--bym-accent);
    color: var(--bym-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.7);
    color: #FFFFFF !important;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 10px 25px rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 25px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px rgba(37, 211, 102, 0.5); }
}

/* SECTION BACKGROUNDS */
.bg-bym-surface {
    background-color: var(--bym-surface) !important;
}

.bg-bym-accent {
    background-color: var(--bym-accent) !important;
}

/* ADMIN PANEL ISOLATED DARK MODE STYLING */
body.admin-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

body.admin-body .bg-body-tertiary,
body.admin-body .bg-body {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

body.admin-body .admin-sidebar {
    background-color: #0f172a !important;
    border-right: 1px solid #334155 !important;
}

body.admin-body .admin-sidebar .nav-link {
    color: #cbd5e1 !important;
}

body.admin-body .admin-sidebar .nav-link.active {
    background-color: var(--bym-primary) !important;
    color: #FFFFFF !important;
}

body.admin-body .card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* RESPONSIVE OPTIMIZATIONS */
@media (max-width: 991.98px) {
    .bym-hero { padding: 35px 0 35px; }
    .bym-hero-title { font-size: 2rem; }
    .whatsapp-float {
        bottom: 24px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 30px !important;
    }
    footer.bg-dark {
        padding-bottom: 95px !important;
    }
}
