/* Vizitmor Custom Styles */

:root {
    /* Vizitmor Brand Colors - Option 1 (Indigo + Parlak Eflatun) */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;

    /* Parlak Eflatun accent */
    --accent-color: #e879f9;
    --accent-hover: #d946ef;
    --accent-light: #fae8ff;

    --secondary-color: #64748b;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;

    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* Bootstrap Primary Override - Indigo */
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-link-color: #6366f1;
    --bs-link-hover-color: #4f46e5;
}

/* Bootstrap Utility Overrides */
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.btn-primary {
    background-color: #6366f1;
    border-color: #6366f1;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.btn-outline-primary {
    color: #6366f1;
    border-color: #6366f1;
}

.btn-outline-primary:hover {
    background-color: #6366f1;
    border-color: #6366f1;
    color: white;
}

.text-primary {
    color: #6366f1 !important;
}

/* Form Controls — Bootstrap blue → Indigo */
.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.form-check-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Active list items — Bootstrap blue → Indigo */
.list-group-item.active {
    background-color: #6366f1;
    border-color: #6366f1;
}

.nav-pills .nav-link.active {
    background-color: #6366f1;
}

/* Pagination active — Bootstrap blue → Indigo */
.page-item.active .page-link {
    background-color: #6366f1;
    border-color: #6366f1;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Progress bars — Bootstrap blue → Indigo */
.progress-bar {
    background-color: #6366f1;
}

.border-primary {
    border-color: #6366f1 !important;
}

/* Accent Color Utilities (Parlak Eflatun) */
.bg-accent {
    background-color: #e879f9 !important;
}

.bg-accent-light {
    background-color: #fae8ff !important;
}

.text-accent {
    color: #e879f9 !important;
}

.btn-accent {
    background-color: #e879f9;
    border-color: #e879f9;
    color: white;
}

.btn-accent:hover, .btn-accent:focus {
    background-color: #d946ef;
    border-color: #d946ef;
    color: white;
}

.btn-outline-accent {
    color: #e879f9;
    border-color: #e879f9;
}

.btn-outline-accent:hover {
    background-color: #e879f9;
    border-color: #e879f9;
    color: white;
}

.border-accent {
    border-color: #e879f9 !important;
}

/* Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
}

.bg-gradient-accent {
    background: linear-gradient(135deg, #e879f9 0%, #d946ef 100%) !important;
}

.bg-gradient-mixed {
    background: linear-gradient(135deg, #6366f1 0%, #e879f9 100%) !important;
}

/* Base styles */
body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

/* Headings inside text-white or bg-dark containers must be white */
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6 {
    color: #fff;
}

.text-muted {
    color: #6c757d !important;
}

/* Links */
a {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    text-decoration: none;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Accent button - canlı eflatun/magenta */
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 121, 249, 0.35);
}

.btn-outline-accent {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: transparent;
}

.btn-outline-accent:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.card-title {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Metrics cards — Vizitmor brand depth (indigo → violet, flat-blue retired) */
.metrics-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    border: none;
}

.metrics-card .card-body {
    padding: 1.5rem;
}

.metrics-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.metrics-card .text-white-50 {
    opacity: 0.8;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white !important;
    font-weight: 600;
}

/* Dropdown menus */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-success {
    background-color: #d1f2eb;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Progress bars */
.progress {
    height: 0.5rem;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
}

.progress-bar {
    border-radius: var(--border-radius);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 2px;
    border-radius: var(--border-radius);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Page headers — Vizitmor brand depth (indigo → violet, flat-blue retired) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin: 0;
}

/* Dashboard specific styles */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

.dashboard-card.info {
    border-left-color: var(--info-color);
}

/* Sidebar */
.sidebar {
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.sidebar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: white !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .metrics-card h2 {
        font-size: 2rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom utilities */
.text-primary-hover:hover {
    color: var(--primary-color) !important;
}

.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.border-primary-left {
    border-left: 4px solid var(--primary-color) !important;
}

.shadow-sm-hover:hover {
    box-shadow: var(--box-shadow) !important;
}

.rounded-lg {
    border-radius: 1rem !important;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ========================================
   PUBLIC PAGE UTILITIES
   ======================================== */

/* Section padding */
.section-padding {
    padding: 4rem 0;
}
@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* Text gradient */
.text-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature hero standardization */
.feature-hero {
    padding: 5rem 0 3rem;
    margin-top: 56px;
}

/*
 * #834 md.6 — Shared public hero gradient (Vizitmor marka hissi).
 * Homepage hero ailesi ile aynı indigo → violet → fuchsia derinlik (135°).
 * Flat tek-mavi public hero'lar bu sınıfı kullanır (DRY: hex tek yerde).
 * NOT: bg-image hero'lar (ads/instagram/whatsapp vb.) bu sınıfı KULLANMAZ.
 */
.hero-brand-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 55%, #a855f7 100%);
}
.hero-brand-gradient::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 55%;
    height: 140%;
    /* Fuchsia accent glow — homepage hero ile aynı derinlik */
    background: radial-gradient(circle, rgba(232, 121, 249, 0.18) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.hero-brand-gradient > .container,
.hero-brand-gradient > .container-fluid {
    position: relative;
    z-index: 2;
}

/* Hover lift */
.hover-lift {
    transition: all 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Contrast section (failure/success) */
.contrast-section .contrast-fail {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    padding: 2rem;
}
.contrast-section .contrast-success {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 0.75rem;
    padding: 2rem;
}

/* Browser mockup frame */
.browser-mockup {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.browser-mockup-bar {
    background: #334155;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.browser-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.browser-mockup-dot.red { background: #ef4444; }
.browser-mockup-dot.yellow { background: #f59e0b; }
.browser-mockup-dot.green { background: #10b981; }
.browser-mockup-url {
    background: #1e293b;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    color: #94a3b8;
    font-size: 0.75rem;
    flex-grow: 1;
    margin-left: 0.5rem;
}
.browser-mockup-body {
    padding: 1.5rem;
    background: #f8fafc;
    min-height: 200px;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Social proof bar */
.social-proof-bar {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.social-proof-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}
.social-proof-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Feature row alternating layout */
.feature-row {
    padding: 3rem 0;
}
.feature-row:nth-child(even) {
    background: #f8fafc;
}

/* Testimonial card improved */
.testimonial-card {
    border-left: 4px solid var(--primary-color) !important;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
    font-family: Georgia, serif;
}

/* AEO highlight section */
.aeo-highlight {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.aeo-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}

/* Trust bar in footer */
.trust-bar {
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}
.trust-bar i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}