/* ===================================
   Türkei Mietwagen - Global Styles
   Premium Corporate Design
   =================================== */

/* Root Variables */
:root {
    --primary-color: #083164;
    --primary-dark: #051f3d;
    --primary-light: #0d4a8f;
    --secondary-color: #ffffff;
    --accent-color: #1e5a9e;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --border-color: #e1e4e8;
    --border-light: #e8ebf2;
    --hover-color: #0a4080;
    --bg-light: #f6f8fa;
    --bg-lighter: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--bg-light);
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

/* Top Header Bar */
.top-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 55px;
    width: auto;
}

.top-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-reservation {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-reservation:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Main Navigation */
.main-nav {
    background-color: var(--secondary-color);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--border-color);
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-nav .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.main-nav .nav::-webkit-scrollbar {
    display: none;
}

.main-nav .nav-item {
    flex-shrink: 0;
}

.main-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.7rem 1.5rem !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    letter-spacing: 0;
}

.main-nav .nav-link i {
    display: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    background-color: rgba(8, 49, 100, 0.03);
}

/* Content Spacing for Fixed Header */
body {
    padding-top: 145px;
}

/* Mobile Toggle - Removed */

/* Search Form Section */
.search-section {
    background-color: var(--primary-color);
    padding: 2.5rem 0;
}

.search-form-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.search-form-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form-card h3 i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: var(--secondary-color);
    font-weight: 400;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 49, 100, 0.08);
    background-color: var(--secondary-color);
    outline: none;
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.85rem 2rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 0.95rem;
}

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

/* MAIN CONTENT AREA */
main {
    background-color: var(--bg-light);
    min-height: 60vh;
}

main .container {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
}

main h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

main .lead {
    color: var(--text-medium);
    font-size: 1.2rem;
    font-weight: 400;
}

.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer h5 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 400;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: start;
    font-weight: 400;
    line-height: 1.6;
}

.footer-contact-info i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--secondary-color);
    font-size: 1rem;
    min-width: 18px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    border-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--secondary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: transparent;
}

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

/* ===================================
   UTILITIES & EXTRAS
   =================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

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

.search-form-card,
main .container {
    animation: fadeIn 0.4s ease-out;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 991px) {
    body {
        padding-top: 130px;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .top-header {
        padding: 0.85rem 0;
    }
    
    .main-nav {
        top: 63px;
        padding: 0.75rem 0;
    }
    
    .language-selector {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-reservation {
        font-size: 0.85rem;
        padding: 0.4rem 1.1rem;
    }
    
    .main-nav .nav-link {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.9rem;
        margin: 0 0.45rem;
    }
    
    .search-form-card {
        padding: 1.75rem;
    }
    
    .search-form-card h3 {
        font-size: 1.35rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer h5 {
        margin-top: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body {
        padding-top: 115px;
    }
    
    .top-header {
        padding: 0.65rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .main-nav {
        top: 55px;
        padding: 0.65rem 0;
    }
    
    .top-header-actions {
        gap: 0.5rem;
    }
    
    .language-selector {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }
    
    .btn-reservation {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .main-nav .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.875rem;
        margin: 0 0.4rem;
    }
    
    .search-section {
        padding: 2rem 0;
    }
    
    .search-form-card {
        padding: 1.5rem;
    }
    
    .search-form-card h3 {
        font-size: 1.25rem;
    }
    
    .btn-search {
        margin-top: 0.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.7rem 0.85rem;
    }
    
    main .container {
        padding: 2rem 1.5rem;
    }
    
    main h1 {
        font-size: 1.75rem;
    }
    
    main .lead {
        font-size: 1.05rem;
    }
    
    .footer h5 {
        text-align: left;
    }
    
    .footer h5::after {
        left: 0;
        transform: none;
    }
    
    .footer-links,
    .footer-contact-info {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-contact-info li {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .btn-reservation i {
        display: none;
    }
    
    .btn-reservation {
        padding: 0.35rem 0.65rem;
    }
}

/* Very Small Screens - 400px and below */
@media (max-width: 400px) {
    body {
        padding-top: 110px;
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }
    
    .top-header {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .main-nav {
        top: 50px;
        padding: 0.55rem 0;
    }
    
    .top-header-actions {
        gap: 0.4rem;
    }
    
    .language-selector {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .language-selector i {
        font-size: 0.9rem;
    }
    
    .btn-reservation {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-reservation i {
        font-size: 0.9rem;
    }
    
    .main-nav .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem;
        margin: 0 0.3rem;
    }
    
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-form-card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .search-form-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .search-form-card h3 i {
        font-size: 1.1rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .btn-search {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .btn-search i {
        font-size: 0.85rem;
    }
    
    main .container {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
    
    main h1 {
        font-size: 1.5rem;
    }
    
    main .lead {
        font-size: 0.95rem;
    }
    
    main .text-muted {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        height: 45px;
    }
    
    .footer h5 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        margin-top: 1.25rem;
    }
    
    .footer p,
    .footer-links a,
    .footer-contact-info li {
        font-size: 0.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
        line-height: 1.5;
    }
    
    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}
