/* css/style.css - Premium Modern Dark/Gold Styling System */

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

:root {
    --bg-color: #0d0e12;
    --surface-color: #16171d;
    --surface-light: #1e2029;
    --primary-color: #d4af37;
    --primary-hover: #ffc83b;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(22, 23, 29, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --radius: 12px;
    --font: 'Outfit', sans-serif;
    
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 50px;
}

/* Header & Navigation */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
}

.nav-links a.btn-primary {
    color: #000;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000 !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-color);
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 100px 20px;
    margin: 0 auto 30px auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background-color: rgba(13, 14, 18, 0.5);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0.65;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 14, 18, 0.2) 0%, rgba(13, 14, 18, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

/* Custom Autocomplete dropdowns for routes */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid var(--glass-border);
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-light);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

/* Booking Flow Card / Wizard */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--surface-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.3s;
    color: var(--text-muted);
}

.step-node.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.step-node.completed {
    border-color: var(--primary-color);
    background-color: var(--surface-color);
    color: var(--primary-color);
}

/* Uber-style Segment Listing */
.segment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.segment-card {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.segment-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.02);
}

.segment-card.selected {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.04);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.segment-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.segment-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    transition: all 0.3s;
}

.segment-card.selected .segment-icon-container {
    background-color: rgba(212, 175, 55, 0.1);
}

.segment-icon-container svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.segment-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.segment-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.segment-right {
    text-align: right;
}

.segment-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.segment-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Card Payment Simulation Aestetics */
.payment-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 800px) {
    .payment-area {
        grid-template-columns: 1fr;
    }
}

.card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 350px;
    height: 220px;
    margin: 0 auto 20px auto;
}

.credit-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #1f1c2c, #928dab);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-face.front {
    z-index: 2;
}

.card-face.back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2b2b2b, #111111);
    padding: 20px 0;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #d4af37, #aa7c11);
    border-radius: 5px;
    margin-bottom: 20px;
}

.card-number {
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-family: monospace;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-holder-name {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.card-magnetic-strip {
    height: 40px;
    background-color: #000;
    width: 100%;
    margin-top: 10px;
}

.card-signature-cvv {
    padding: 0 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-signature {
    background-color: #fff;
    height: 35px;
    flex: 1;
    border-radius: 3px;
}

.card-cvv-box {
    background-color: #eee;
    color: #000;
    padding: 6px 12px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: bold;
}

/* 3D Secure Simulation Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Tables (Cari, Bookings etc.) */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

th {
    font-weight: 600;
    color: var(--text-muted);
}

tr:hover td {
    background-color: rgba(255,255,255, 0.01);
}

/* Badges for status */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-approved, .badge-confirmed, .badge-completed, .badge-paid { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-rejected, .badge-cancelled { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-assigned, .badge-en_route { background-color: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-debited { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }

/* Dashboard layout grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 5px;
}

.stat-val.gold {
    color: var(--primary-color);
}

.stat-val.success {
    color: var(--success);
}

.stat-val.danger {
    color: var(--danger);
}

/* Map page and simulation */
.map-container {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin: 20px 0;
    box-shadow: var(--shadow);
    z-index: 1;
}

.tracking-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .tracking-info {
        grid-template-columns: 1fr;
    }
}

.driver-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--surface-light);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.driver-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.driver-details h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.driver-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Login/Register Centered Card Layout */
.auth-wrapper {
    max-width: 450px;
    margin: 60px auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Leaflet dark theme fix */
.leaflet-container {
    background: #242426 !important;
}
.leaflet-tile {
    filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) !important;
}

/* Alert notifications */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #34d399;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

/* ============================================
   KAPSAMLI MOBİL UYUM (Responsive Design)
   ============================================ */

/* Hamburger Menü Butonu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

@media (max-width: 768px) {
    /* Hamburger menü göster */
    .mobile-menu-btn {
        display: block;
    }

    /* Navbar */
    .navbar {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a, .nav-links span {
        display: block;
        padding: 10px 12px;
        border-radius: var(--radius);
        font-size: 0.95rem;
    }

    .nav-links a:hover {
        background-color: var(--surface-light);
    }

    /* Logo */
    .logo a {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        padding: 30px 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    /* Container */
    .container {
        margin: 15px auto;
        padding: 0 12px;
    }

    /* Card */
    .card {
        padding: 18px;
        margin-bottom: 15px;
    }

    /* Segment kartları (Uber tarzı) */
    .segment-card {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .segment-left {
        width: 100%;
    }

    .segment-right {
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .segment-icon-container {
        width: 45px;
        height: 45px;
    }

    .segment-icon-container svg {
        width: 24px;
        height: 24px;
    }

    /* Ödeme sayfası */
    .payment-area {
        grid-template-columns: 1fr !important;
    }

    .card-container {
        max-width: 280px;
        height: 180px;
    }

    /* Takip sayfası harita */
    #map {
        height: 250px !important;
    }

    .tracking-status-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .tracking-info {
        grid-template-columns: 1fr !important;
    }

    .driver-card {
        flex-direction: column;
        text-align: center;
    }

    /* Admin panel tablo responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }

    th, td {
        white-space: nowrap;
        padding: 8px 10px !important;
    }

    /* Admin form grids */
    .card form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Step indicators */
    .step-indicator {
        gap: 0;
    }

    .step-node {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    /* Auth */
    .auth-wrapper {
        margin: 20px auto;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    /* Toggle container */
    .toggle-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Summary grid */
    .card div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Butonlar mobilde tam genişlik */
    .form-row {
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Küçük butonlar hariç */
    .btn-sm {
        width: auto;
    }
}

/* Tablet breakpoint (768-1024) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

