/* 
 * Altay İletişim - Sleek Interface Design Theme Stylesheet
 * High-performance, premium light slate/blue color palettes, modern layout overrides, and smooth interactive transitions.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --bg-light: #f8fafc; /* Sleek Slate 50 background */
    --dark-blue: #0f172a; /* Deep Slate 900 */
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --muted-light: #64748b; /* Slate 500 */
    --border-color: #e2e8f0; /* Slate 200 */
    --border-light: #f1f5f9; /* Slate 100 */
    
    /* Modern shadow presets */
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

/* Global Reset & Base Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: var(--bg-light);
    color: var(--slate-700);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography styles */
.font-sans {
    font-family: 'Inter', system-ui, sans-serif !important;
}
.font-sans-light {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 300;
}
.font-sans-medium {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 500;
}
.font-sans-bold {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 700;
}
.font-sans-black {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-weight: 800;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-blue);
    font-weight: 700;
    tracking: -0.02em;
}

/* Color Overrides & Extensions */
.text-dark-blue {
    color: var(--dark-blue) !important;
}
.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}
.text-muted-light {
    color: var(--muted-light) !important;
}
.text-success-light {
    color: #34d399 !important; /* Emerald 400 */
}
.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

/* Utility Utilities */
.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.75rem !important; }
.fs-9 { font-size: 0.65rem !important; }
.leading-none { line-height: 1 !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

/* Header & Navbar Setup of the Sleek Theme */
.top-bar-notice {
    font-size: 0.8rem;
    background-color: var(--dark-blue) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hover-glow-wa {
    transition: all 0.25s ease;
}
.hover-glow-wa:hover {
    color: #10b981 !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.header-shadow {
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05) !important;
}

.navbar {
    border-bottom: 1px solid var(--border-color);
}

.site-header-nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-header-nav > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.site-header-nav .navbar-toggler {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.35rem 0.5rem;
}

.navbar-brand.site-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3rem);
    margin-right: 0.25rem;
    padding: 0;
    overflow: hidden;
}

.site-logo-wrap--header {
    display: block;
    max-width: 100%;
    max-height: 30px;
    line-height: 0;
    overflow: hidden;
}

.site-logo-wrap--footer {
    max-height: 34px;
    display: inline-flex;
    align-items: center;
    line-height: 0;
    overflow: hidden;
}

.navbar-brand .site-logo {
    display: block;
    width: auto !important;
    height: 30px !important;
    max-height: 30px !important;
    max-width: min(88px, 36vw) !important;
    object-fit: contain;
    object-position: left center;
}

.site-logo--footer {
    height: 34px !important;
    max-height: 34px !important;
    max-width: min(100px, 38vw) !important;
    width: auto !important;
    object-fit: contain;
}

.brand-logo-container {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

@media (max-width: 380px) {
    .navbar-brand.site-brand {
        max-width: calc(100% - 2.75rem);
    }

    .site-logo-wrap--header {
        max-height: 26px;
    }

    .navbar-brand .site-logo {
        height: 26px !important;
        max-height: 26px !important;
        max-width: min(76px, 34vw) !important;
    }

    .site-header-nav {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
}

@media (min-width: 576px) {
    .site-header-nav {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .navbar-brand.site-brand {
        max-width: calc(100% - 3.5rem);
    }

    .site-logo-wrap--header {
        max-height: 44px;
    }

    .navbar-brand .site-logo {
        height: 44px !important;
        max-height: 44px !important;
        max-width: 130px !important;
    }

    .site-logo-wrap--footer {
        max-height: 38px;
    }

    .site-logo--footer {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 115px !important;
    }
}

@media (min-width: 768px) {
    .site-logo-wrap--header {
        max-height: 48px;
    }

    .navbar-brand .site-logo {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 145px !important;
    }

    .site-logo-wrap--footer {
        max-height: 42px;
    }

    .site-logo--footer {
        height: 42px !important;
        max-height: 42px !important;
        max-width: 125px !important;
    }
}

@media (min-width: 992px) {
    .navbar-brand.site-brand {
        max-width: none;
        flex: 0 1 auto;
    }

    .site-header-nav {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
    }

    .site-logo-wrap--header {
        max-height: 52px;
    }

    .navbar-brand .site-logo {
        height: 52px !important;
        max-height: 52px !important;
        max-width: 160px !important;
    }

    .site-logo-wrap--footer {
        max-height: 44px;
    }

    .site-logo--footer {
        height: 44px !important;
        max-height: 44px !important;
        max-width: 135px !important;
    }
}

@media (min-width: 1200px) {
    .site-logo-wrap--header {
        max-height: 56px;
    }

    .navbar-brand .site-logo {
        height: 56px !important;
        max-height: 56px !important;
        max-width: 175px !important;
    }
}

.brand-name {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1;
}

.brand-sub {
    font-size: 0.625rem;
    color: var(--primary-blue);
    letter-spacing: 2.5px;
    font-weight: 700;
}

.nav-link {
    color: var(--slate-600) !important;
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 99px;
}

/* Dynamic Buttons */
.btn {
    border-radius: 99px !important; /* Premium Pill style button design */
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.15) !important;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover) !important;
    border-color: var(--primary-blue-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.25) !important;
}

.btn-outline-primary {
    border-color: var(--border-color) !important;
    color: var(--primary-blue) !important;
    background-color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.2) !important;
}

.btn-success {
    background-color: #10b981 !important; /* Premium Emerald */
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.15) !important;
}

.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.25) !important;
}

.btn-outline-success {
    border-color: #d1fae5 !important;
    color: #10b981 !important;
    background-color: #ffffff !important;
}

.btn-outline-success:hover {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border-color: #fee2e2 !important;
    color: #ef4444 !important;
    background-color: #ffffff !important;
}

.btn-outline-danger:hover {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-outline-warning {
    border-color: #fef3c7 !important;
    color: #f59e0b !important;
    background-color: #ffffff !important;
}

.btn-outline-warning:hover {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-nav {
    padding: 8px 18px !important;
    box-shadow: none !important;
}

/* Service Cards of Sleek Theme */
.service-card {
    border: 1px solid var(--border-light) !important;
    border-radius: 24px !important; /* Perfect soft rounded geometries */
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-blue) !important;
}

.service-card .icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: #eff6ff; /* Soft blue alpha background */
    border-radius: 16px;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    transform: scale(1.05) rotate(5deg);
}

/* Product Cards of Sleek Theme */
.product-card {
    border: 1px solid var(--border-light) !important;
    border-radius: 24px !important;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue) !important;
}

.product-img-wrapper {
    height: 250px;
    position: relative;
    background-color: #f8fafc;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Translucent Beautiful Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 0.7rem;
    border-radius: 99px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-badge.bg-primary {
    background-color: #eff6ff !important;
    color: var(--primary-blue) !important;
    border: 1px solid #dbeafe !important;
}

.product-badge.bg-success {
    background-color: #ecfdf5 !important;
    color: #10b981 !important;
    border: 1px solid #d1fae5 !important;
}

.product-badge.bg-warning {
    background-color: #fff7ed !important;
    color: #f97316 !important;
    border: 1px solid #ffedd5 !important;
}

.product-price {
    font-size: 1.375rem;
    color: var(--dark-blue) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Hero Section override for luxury dark mode style */
.hero-section {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 110px 0 !important;
    position: relative;
    overflow: hidden;
}

.hero-stats {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(8px);
}

.hero-section .badge.bg-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* About Cards */
.about-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light) !important;
    border-radius: 28px !important;
    padding: 48px !important;
    box-shadow: var(--shadow-sm);
}

/* Custom rounded structural elements */
.rounded-4 { border-radius: 20px !important; }
.rounded-5 { border-radius: 28px !important; }

/* Alerts custom formatting matching the Sleek layout rules */
.alert-warning {
    background-color: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
    color: #b45309 !important;
    border-radius: 20px !important;
}

.alert-info {
    background-color: #f0f9ff !important;
    border: 1px solid #e0f2fe !important;
    color: #0369a1 !important;
    border-radius: 20px !important;
}

.alert-success {
    background-color: #ecfdf5 !important;
    border: 1px solid #d1fae5 !important;
    color: #065f46 !important;
    border-radius: 20px !important;
}

/* Breadcrumbs */
.breadcrumb-item a {
    color: var(--muted-light) !important;
    transition: color 0.25s ease;
}
.breadcrumb-item a:hover {
    color: #ffffff !important;
}

/* Form input elements styling */
.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-size: 0.925rem !important;
    color: var(--slate-800) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    border-color: var(--primary-blue) !important;
    background-color: #ffffff !important;
    outline: none !important;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #10b981 !important; /* Vibrant Emerald */
    width: 58px;
    height: 58px;
    border-radius: 50% !important;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-floating:hover {
    transform: scale(1.08) translateY(-3px);
    background-color: #059669 !important;
    box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.5) !important;
}

.whatsapp-tooltip-toast {
    position: absolute;
    right: 70px;
    top: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-radius: 100px !important;
    padding: 8px 18px !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-lg) !important;
}

.whatsapp-floating:hover .whatsapp-tooltip-toast {
    opacity: 1;
    visibility: visible;
}

/* Admin Dashboard Look */
.admin-badge {
    padding: 6px 12px !important;
    font-size: 0.725rem !important;
    font-weight: 600 !important;
    border-radius: 99px !important;
    letter-spacing: 0.03em;
}

.bg-primary-subtle {
    background-color: #eff6ff !important;
    color: var(--primary-blue) !important;
    border: 1px solid #dbeafe !important;
}

.bg-success-subtle {
    background-color: #ecfdf5 !important;
    color: #10b981 !important;
    border: 1px solid #d1fae5 !important;
}

.bg-warning-subtle {
    background-color: #fff7ed !important;
    color: #f97316 !important;
    border: 1px solid #ffedd5 !important;
}

/* Tables styling */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table th {
    background-color: #f8fafc !important;
    border-bottom: 1.5px solid var(--border-color) !important;
    color: var(--slate-600) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 16px !important;
}

.table td {
    border-bottom: 1px solid var(--border-light) !important;
    padding: 16px !important;
    vertical-align: middle !important;
}

/* Custom Scrollbar for modern webkit engines */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Transitions */
.transition-all {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.transition {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Login screen vs Dashboard modular visibility toggler */
.admin-logged-out .admin-dashboard-wrapper {
    display: none !important;
}

.admin-logged-in .admin-login-wrapper {
    display: none !important;
}

/* İletişim sayfası */
.max-w-2xl {
    max-width: 42rem;
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

.contact-map-wrap iframe {
    min-height: 320px;
}

@media (min-width: 768px) {
    .contact-map-wrap iframe {
        min-height: 420px;
    }
}
