﻿/* ============================================================
   MERGED CSS — general.css + sefer.css
   Çakışmalar giderildi, tek tutarlı stil sistemi
   ============================================================ */

/* ── CSS Değişkenleri ─────────────────────────────────────── */
:root {
    /* Marka renkleri */
    --akkon-red: #A83226;
    --primary-blue: #0052A5;
    --secondary-blue: #003D7A;
    --ocean-blue: #328CC1;
    --accent-cyan: #00B4D8;
    --dark-navy: #001F3F;
    --ocean-gradient: #a03123; /* buton / footer arka plan rengi */
    /* Nötr renkler */
    --light-blue: #E8F4F8;
    --light-gray: #F8FAFC;
    --white: #FFFFFF;
    --success: #10B981;
    /* Metin renkleri */
    --text-dark: #1A1A1A;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-light: #6B7280;
    /* Kenarlık */
    --border-light: #E5E7EB;
    --border-gray: #E2E8F0;
    /* Gölgeler */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 82, 165, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 82, 165, 0.20);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Body ────────────────────────────────────────────────── */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: #F9FAFB;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ──────────────────────────────────────────── */
.modern-navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

    .modern-navbar.scrolled {
        box-shadow: var(--shadow-md);
    }

.navbar-brand img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.75rem 1.25rem !important;
    position: relative;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: var(--ocean-gradient);
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        color: var(--primary-blue);
    }

        .navbar-nav .nav-link:hover::after {
            width: 60%;
        }

/* ── Hero — Ana Sayfa ────────────────────────────────────── */
.hero-section {
    background: url('https://akkonlines.com//assets/img/web_container_full3-2.jpg') center/cover no-repeat;
    padding: 120px 0 90px;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.30);
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.90);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Hero — Sefer Sayfası ────────────────────────────────── */
.schedule-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 3rem 2rem;
    color: var(--white);
}

    .schedule-hero h1 {
        font-family: 'Space Grotesk', 'Sora', sans-serif;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

/* ── Search Card ─────────────────────────────────────────── */
.search-section-container {
    margin: 0 40px;
}

/* Ortak kart stili */
.search-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border: 1px solid rgba(0, 82, 165, 0.10);
    max-width: 1750px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

    /* Ana sayfa kartı hero'nun altına iner */
    .hero-section + * .search-card,
    .search-card.hero-offset {
        margin-top: -100px;
        position: relative;
        z-index: 10;
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }

/* Sefer sayfası kartı */
.schedule-search {
    margin: -2rem auto 3rem;
    padding: 0 2rem;
}

.search-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.search-card-title,
.search-title {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.search-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Sefer sayfası arama grid'i */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Form Elemanları ─────────────────────────────────────── */
.form-label,
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem; 
    letter-spacing: 0.5px;
    min-height: 28px;
}

    .form-label i {
        margin-right: 0.5rem;
    }

.form-control,
.form-select {
    width: 100%;
    height: 50px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 4px rgba(0, 82, 165, 0.10);
    }

    .form-control::placeholder {
        color: #9CA3AF;
    }

/* Dropdown placeholder */
 

    .form-select option:not([value=""]) {
        color: var(--text-primary);
    }

    .form-select option[value=""][disabled] {
        color: #9CA3AF;
    }

/* Icon'lu input */
.form-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.has-icon .form-control,
.has-icon .form-select {
    padding-left: 3rem;
}

/* Bootstrap grid hizalama */
.row.g-4 {
    align-items: end;
}

/* ── Butonlar ────────────────────────────────────────────── */
/* Tek bir birleşik arama butonu */
.btn-search,
.btn-search-sefer {
    background: var(--ocean-gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow-md);
}

    .btn-search::before {
        content: '';
        position: absolute;
        inset: 0 -100% 0 auto;
        width: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
        transition: inset 0.5s ease;
    }

    .btn-search:hover,
    .btn-search-sefer:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: #8A2920;
    }

        .btn-search:hover::before {
            inset: 0 auto 0 -100%;
        }

    .btn-search:active,
    .btn-search-sefer:active {
        transform: translateY(0);
    }

/* ── Sonuçlar ────────────────────────────────────────────── */
.results-section {
    margin-top: 3rem;
   /* animation: fadeInUp 0.6s ease-out;*/
}
.bl-warning {
    position: absolute;
    bottom: -22px; /* input'un hemen altına */
    left: 0;
    color: red;
    font-size: 0.8rem;
    display: none;
}
/* Wrapper zaten relative olmalı */
.input-wrapper {
    position: relative;
    width: 100%;
}

/* Input sağdan boşluk bırakmalı */
.input-with-clear {
    padding-right: 42px; /* ikon için alan */
}

/* Clear buton */
.clear-icon {
    position: absolute;
    top: 70%;
    right: 20px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    border-radius: 50%;
    color: #9CA3AF;
    background: #f3f4f6; /* hafif gri arka plan */

    cursor: pointer;
    display: none;
    z-index: 20;
    transition: all 0.2s ease;
}

    /* Hover efekti */
    .clear-icon:hover {
        background: #A83226;
        color: #ffffff;
    }

/* Input focus olduğunda ikon biraz belirginleşsin */
.input-with-clear:focus + .clear-icon {
    opacity: 1;
}

.results-container {
    max-width: 1800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-title {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ── Tablo ───────────────────────────────────────────────── */
.table-container,
.schedule-table {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    border: 1px solid var(--border-light);
    position: relative;
}

    /* Scrollbar */
    .table-container::-webkit-scrollbar {
        height: 10px;
    }

    .table-container::-webkit-scrollbar-track {
        background: #F3F4F6;
        border-radius: 0 0 16px 16px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: var(--ocean-gradient);
        border-radius: 10px;
    }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-blue);
        }

    .table,
    .schedule-table table {
        width: 100%;
        margin-bottom: 0;
        border-collapse: collapse;
        white-space: nowrap;
    }

        /* Tablo başlığı */
        .table thead,
        .schedule-table thead {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
            position: sticky;
            top: 0;
            z-index: 10;
        }

            .table thead th,
            .schedule-table thead th {
                color: var(--white);
                font-size: 0.75rem;
                font-weight: 600;
                padding: 1rem 0.75rem;
                border: none;
                text-align: left;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                white-space: nowrap;
                position: relative;
            }

                .table thead th::after {
                    content: '';
                    position: absolute;
                    right: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 1px;
                    height: 60%;
                    background: rgba(255, 255, 255, 0.20);
                }

                .table thead th:last-child::after {
                    display: none;
                }

        /* Tablo satırları */
        .table tbody tr,
        .schedule-table tbody tr {
            border-bottom: 1px solid var(--border-light);
            transition: background 0.2s ease;
        }

            .table tbody tr:hover,
            .schedule-table tbody tr:hover {
                background: var(--light-blue);
            }

        .table tbody td,
        .schedule-table tbody td {
            padding: 1rem 0.75rem;
            font-size: 0.9rem;
            color: var(--text-primary);
            vertical-align: middle;
        }

        .table tbody tr:last-child,
        .schedule-table tbody tr:last-child {
            border-bottom: none;
        }

/* ── Özel Tablo Hücre Stilleri ───────────────────────────── */
.vessel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #DBEAFE;
    color: #1E40AF;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.vessel-icon {
    font-size: 1rem;
}

.date-cell {
    display: flex;
    flex-direction: column;
}

.date-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.date-month {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.route-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.route-port {
    font-weight: 600;
    color: var(--text-primary);
}

.route-arrow {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* ── Scroll İpucu ────────────────────────────────────────── */
.scroll-hint {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(to bottom, transparent, var(--light-blue));
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

    .scroll-hint i {
        margin-left: 0.5rem;
        animation: slideRight 1.5s infinite;
    }

/* ── Disclaimer ──────────────────────────────────────────── */
.disclaimer {
    max-width: 1760px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #78350F;
}

    .disclaimer i {
        margin-right: 0.5rem;
        color: #F59E0B;
    }

/* ── Autocomplete ────────────────────────────────────────── */
.suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    margin-top: 4px;
    list-style: none;
    padding: 6px 0;
}

    .suggestions li {
        padding: 10px 16px;
        cursor: pointer;
        font-size: 0.95rem;
        color: var(--text-primary);
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.15s ease, color 0.15s ease;
    }

        .suggestions li:last-child {
            border-bottom: none;
        }

        .suggestions li:hover,
        .suggestions li:focus {
            background: #eff6ff;
            color: #1d4ed8;
        }

        .suggestions li.selected {
            background: #dbeafe;
            color: #1e40af;
        }

        .suggestions li .highlight {
            font-weight: 600;
            color: #2563eb;
        }

/* ── Modal ───────────────────────────────────────────────── */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

    .custom-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content-custom {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-header-custom {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

    .modal-icon.error {
        background: #FEE2E2;
        color: #DC2626;
    }

    .modal-icon.success {
        background: #D1FAE5;
        color: #10B981;
    }

    .modal-icon.warning {
        background: #FEF3C7;
        color: #F59E0B;
    }

.modal-title-custom {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-body-custom {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.modal-footer-custom {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-btn {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-btn-primary {
    background: var(--ocean-gradient);
    color: var(--white);
}

    .modal-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(160, 49, 35, 0.30);
    }

.modal-btn-secondary {
    background: #F3F4F6;
    color: var(--text-primary);
}

    .modal-btn-secondary:hover {
        background: #E5E7EB;
    }

/* ── Durum: Yükleniyor ───────────────────────────────────── */
.loading-spinner,
.loading i {
    animation: spin 0.8s linear infinite;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    border-top-color: var(--white);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

    .loading i {
        font-size: 3rem;
    }

/* ── Durum: Sonuç Yok ────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

    .no-results i {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.30;
    }

    .no-results h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

/* ── Footer ──────────────────────────────────────────────── */
.modern-footer {
    background: var(--ocean-gradient);
    color: rgba(255, 255, 255, 0.80);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

    .footer-section a:hover {
        color: var(--accent-cyan);
        padding-left: 5px;
    }

.footer-logo {
    margin-bottom: 1.5rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.60);
}

/* ── Animasyonlar ────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.80;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .schedule-hero h1 {
        font-size: 2rem;
    }

    .search-card {
        padding: 2rem 1.5rem;
        margin-top: -40px;
    }

    .search-card-title,
    .search-title {
        font-size: 1.35rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .btn-search,
    .btn-search-sefer {
        width: 100%;
        padding: 0.875rem 2rem;
    }

    .schedule-table {
        overflow-x: auto;
    }

        .schedule-table table {
            min-width: 800px;
        }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-footer {
        padding: 3rem 0 1.5rem;
    }

    .modal-content-custom {
        padding: 2rem;
        max-width: 95%;
    }

    .modal-header-custom {
        flex-direction: column;
        text-align: center;
    }

    .modal-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .suggestions {
        max-height: 200px;
    }

        .suggestions li {
            padding: 12px 14px;
            font-size: 0.97rem;
        }
}
