/* =========================================
   CUSTOM CSS - Tüm özel stiller ve animasyonlar
   ========================================= */

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */

/* Shimmer Animation */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Price Update Animation */
@keyframes priceUpdate {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

/* Slide Down Animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Price Highlight Animation */
@keyframes price-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Smooth Blink Animation */
@keyframes smooth-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

/* Header Z-Index & Positioning */
.header {
    position: relative;
    z-index: 10010;
}

.language-selector a.lang-flag {
    pointer-events: auto;
}

/* Language Selector */
.language-selector {
    margin-left: 15px;
}

.language-dropdown {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.language-dropdown option {
    background: #333;
    color: white;
}

/* Main Navigation Layout */
.main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    margin: 0 !important;
    flex: 0 0 auto;
}

.navbar-collapse {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: center;
}

.navbar-nav {
    margin: 0 20px;
    gap: 5px;
}

/* Navigation Right Section */
.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.nav-right > div {
    margin: 0;
}

.nav-right-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    color: #333;
    transition: all 0.3s;
}

.nav-right-link:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

/* =========================================
   CURRENCY DROPDOWN
   ========================================= */

.currency-dropdown-wrapper {
    position: relative;
    z-index: 10030 !important;
}

.currency-dropdown-btn {
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
}

.currency-dropdown-btn:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.4) !important;
}

.currency-dropdown-menu {
    animation: slideDown 0.3s ease;
    z-index: 200000 !important;
}

body > .currency-dropdown-menu {
    position: fixed !important;
    z-index: 200000 !important;
}

.currency-dropdown-item {
    transition: all 0.2s ease;
}

.currency-dropdown-item:last-child {
    border-bottom: none;
}

/* =========================================
   CURRENCY TICKER BAND
   ========================================= */

.currency-ticker {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    z-index: 1;
    transition: opacity 0.2s ease-in-out;
}

.currency-ticker-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 15px;
    white-space: nowrap;
}

.currency-item {
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.currency-symbol {
    font-size: 16px;
    font-weight: bold;
    color: #ef1d26;
}

.currency-code {
    font-weight: 700;
    color: #fff;
}

.currency-rate {
    color: #e8e8e8;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.5s ease-in-out;
    transform: translateZ(0);
    backface-visibility: hidden;
    min-width: 80px;
    text-align: right;
}

.currency-change {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    transition: all 0.8s ease-in-out;
    transform: translateZ(0);
    backface-visibility: hidden;
    min-width: 60px;
}

.currency-change.positive {
    background: #28a745;
    color: #fff;
}

.currency-change.negative {
    background: #dc3545;
    color: #fff;
}

/* Live Indicator */
.currency-ticker::before {
    content: "🔴 CANLI";
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 10px;
    color: #ff4444;
    font-weight: bold;
    z-index: 10;
    animation: smooth-blink 2s ease-in-out infinite;
}

.currency-item:hover .currency-rate {
    color: #fff;
    transform: scale(1.02);
}

/* =========================================
   PRICE ANIMATIONS
   ========================================= */

.car-price {
    transition: all 0.3s ease;
    position: relative;
}

.car-price.updating {
    color: #ef1d26;
    font-weight: bold;
    animation: price-update 0.5s ease;
}

#currencyTicker {
    transition: opacity 0.3s ease;
}

/* =========================================
   MOBILE HAMBURGER MENU
   ========================================= */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--theme-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* =========================================
   FULL SCREEN MOBILE MENU
   ========================================= */

.mobile-menu-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.mobile-menu-fullscreen.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    transform: translateY(-30px);
    transition: transform 0.4s ease;
}

.mobile-menu-fullscreen.active .mobile-menu-container {
    transform: translateY(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid rgba(239, 29, 38, 0.3);
    margin-bottom: 30px;
}

.mobile-menu-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.mobile-menu-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(239, 29, 38, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--theme-color);
    transform: rotate(90deg);
}

/* Mobile Menu Navigation */
.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav > ul > li > a {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-nav > ul > li > a i {
    margin-right: 15px;
    font-size: 20px;
    color: var(--theme-color);
    width: 30px;
    text-align: center;
}

.mobile-menu-nav > ul > li > a:hover {
    color: var(--theme-color);
    padding-left: 30px;
    background: rgba(239, 29, 38, 0.1);
}

/* Submenu */
.mobile-menu-nav .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-nav .has-submenu.open .submenu {
    max-height: 500px;
}

.mobile-menu-nav .submenu li a {
    display: block;
    padding: 12px 20px 12px 65px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu-nav .submenu li a:hover {
    color: var(--theme-color);
    padding-left: 75px;
    background: rgba(239, 29, 38, 0.1);
}

.mobile-menu-nav .has-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 300;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-menu-nav .has-submenu.open > a::after {
    transform: rotate(180deg);
}

/* Mobile Menu Settings */
.mobile-menu-settings {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(239, 29, 38, 0.3);
}

/* Auth Buttons */
.mobile-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.mobile-auth-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(239, 29, 38, 0.1);
    border: 1px solid rgba(239, 29, 38, 0.3);
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 80px;
}

.mobile-auth-btn:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    transform: translateY(-3px);
}

.mobile-auth-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.mobile-auth-btn span {
    font-size: 13px;
    font-weight: 600;
}

/* Setting Items */
.mobile-setting-item {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.mobile-setting-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.mobile-setting-label i {
    margin-right: 12px;
    font-size: 18px;
    color: var(--theme-color);
    width: 25px;
}

/* Theme Toggle Buttons */
.mobile-theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-theme-btn i {
    font-size: 16px;
}

.mobile-theme-btn:hover {
    background: rgba(239, 29, 38, 0.1);
    border-color: rgba(239, 29, 38, 0.3);
    transform: translateY(-2px);
}

.mobile-theme-btn.active {
    background: var(--theme-color);
    border-color: var(--theme-color);
    box-shadow: 0 4px 12px rgba(239, 29, 38, 0.3);
}

/* Language Flags */
.mobile-language-flags {
    display: flex;
    gap: 10px;
}

.mobile-flag-btn {
    width: 50px;
    height: 50px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.mobile-flag-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.mobile-flag-btn:hover,
.mobile-flag-btn.active {
    border-color: var(--theme-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Currency List */
.mobile-currency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-currency-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-currency-btn img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 12px;
}

.mobile-currency-btn span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.mobile-currency-btn i.fa-check {
    color: var(--theme-color);
    font-size: 16px;
}

.mobile-currency-btn:hover,
.mobile-currency-btn.active {
    background: rgba(239, 29, 38, 0.2);
    border-color: var(--theme-color);
    transform: translateX(5px);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(239, 29, 38, 0.3);
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(239, 29, 38, 0.1);
    border: 1px solid rgba(239, 29, 38, 0.3);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-contact-btn:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    transform: translateX(5px);
}

.mobile-contact-btn i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 18px;
}

.mobile-contact-btn span {
    font-size: 15px;
    font-weight: 600;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-menu-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 29, 38, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
    background: var(--theme-color);
    transform: translateY(-3px);
}

/* Body Scroll Lock */
body.mobile-menu-open {
    overflow: hidden;
}

/* =========================================
   HERO SECTION RESPONSIVE
   ========================================= */

.hero-section {
    min-height: 100vh !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
}

.hero-form-shift {
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* Desktop - Large Screens (1920px+) */
@media (min-width: 1920px) {
    .hero-section h1 {
        font-size: 64px !important;
    }
}

/* Desktop - Medium Screens (1200px+) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh !important;
        padding: 0 !important;
    }
    .hero-section .container {
        gap: 50px !important;
    }
    .hero-section h1 {
        font-size: 56px !important;
    }
}

/* Tablet - Medium Screens (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-section {
        min-height: 100vh !important;
        padding: 0 !important;
    }
    .hero-section .container {
        gap: 35px !important;
    }
    .hero-section h1 {
        font-size: 42px !important;
    }
    .find-car-form {
        padding: 30px !important;
    }
    .find-car-form .row.g-3 {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
    }
}

/* Mobile - Small Devices (max 991px) */
@media (max-width: 991px) {
    .currency-ticker {
        display: none !important;
    }
    .navbar-collapse {
        display: none !important;
    }
    .nav-right {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile - Extra Small Devices (max 767px) */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto !important;
        padding: 100px 0 30px !important;
        align-items: flex-start !important;
    }
    .hero-section .container {
        gap: 20px !important;
    }
    .hero-section h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    .hero-section p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    .hero-section ul {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
        font-size: 13px !important;
    }
    .hero-badges {
        gap: 8px !important;
    }
    .hero-badges .badge-item {
        min-width: calc(50% - 4px) !important;
        padding: 12px 10px !important;
    }
    .hero-badges .badge-item div {
        font-size: 24px !important;
        margin-bottom: 5px !important;
    }
    .hero-badges .badge-item h4 {
        font-size: 11px !important;
        font-weight: 600 !important;
    }
    .find-car-form {
        padding: 20px 15px !important;
    }
    .form-header h3 {
        font-size: 18px !important;
    }
    .form-header p {
        font-size: 12px !important;
        margin-top: 4px !important;
    }
    .find-car-form .row.g-3 {
        gap: 10px !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .find-car-form .col-lg-2:nth-child(1),
    .find-car-form .col-lg-2:nth-child(2) {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .find-car-form .col-lg-2:nth-child(3) {
        width: calc(70% - 5px) !important;
        max-width: calc(70% - 5px) !important;
        flex: 0 0 calc(70% - 5px) !important;
    }
    .find-car-form .col-lg-1:nth-child(4) {
        width: calc(30% - 5px) !important;
        max-width: calc(30% - 5px) !important;
        flex: 0 0 calc(30% - 5px) !important;
    }
    .find-car-form .col-lg-2:nth-child(5) {
        width: calc(70% - 5px) !important;
        max-width: calc(70% - 5px) !important;
        flex: 0 0 calc(70% - 5px) !important;
    }
    .find-car-form .col-lg-1:nth-child(6) {
        width: calc(30% - 5px) !important;
        max-width: calc(30% - 5px) !important;
        flex: 0 0 calc(30% - 5px) !important;
    }
    .find-car-form .col-lg-2:nth-child(7) {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .find-car-form label {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }
    .find-car-form input,
    .find-car-form .form-control {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    .find-car-form button {
        padding: 12px !important;
        font-size: 13px !important;
        margin-top: 4px !important;
    }
}
