/* Custom CSS for HB Döner Website */

:root {
    /* HB Döner Kurumsal Renkleri */
    --brand-yellow: #f5a800;
    --brand-red: #db1c1f;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    
    /* Legacy colors for compatibility */
    --primary-color: var(--brand-yellow);
    --primary-dark: #d49400;
    --secondary-color: var(--gray-medium);
    --success-color: #28a745;
    --danger-color: var(--brand-red);
    --warning-color: var(--brand-yellow);
    --info-color: #17a2b8;
    --light-color: var(--gray-light);
    --dark-color: var(--gray-dark);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Language Selector */
.language-selector .dropdown-toggle {
    border: none;
    background: transparent;
    color: inherit;
    font-weight: 500;
}

.language-selector .dropdown-toggle:focus {
    box-shadow: none;
}

.language-selector .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.language-selector .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.language-selector .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Scrollbar Hide Utility */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* Custom Scrollbar (for visible scrollbars) */
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #f5a800, #dbc01f);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, #dbc01f, #f5a800);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Progress Steps */
.step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.step-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-line {
    position: absolute;
    top: 25px;
    left: 50%;
    right: -50%;
    height: 3px;
    background-color: #e9ecef;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-line.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .step-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-line {
        display: none;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .language-selector {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
.success-animation {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Restaurant Page Specific Styles */
.restaurant-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skeleton-image {
    height: 128px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-medium);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: var(--brand-red);
}

.notification-warning {
    border-left-color: var(--brand-yellow);
}

.notification-info {
    border-left-color: #3b82f6;
}

/* ========================================
   HB DÖNER RESTAURANT PAGE - BRAND STYLES
   ======================================== */

/* Restaurant Cards - Brand Identity */
.restaurant-card {
    border: 2px solid #f5a800 !important;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-card:hover {
    border-color: #db1c1f !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(219, 28, 31, 0.15) !important;
}

/* Restaurant Name - Brand Colors */
.restaurant-card h3 {
    color: #db1c1f;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Status Badges - Brand Colors */
.restaurant-card .status-open {
    background: linear-gradient(135deg, #f5a800, #f5a800) !important;
    color: white !important;
    border: 2px solid white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(245, 168, 0, 0.4);
}

.restaurant-card .status-closed {
    background: linear-gradient(135deg, #db1c1f, #b91c1c) !important;
    color: white !important;
    border: 2px solid white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(219, 28, 31, 0.4);
}

.restaurant-card .status-featured {
    background: linear-gradient(135deg, #f5a800, #db1c1f) !important;
    color: white !important;
    border: 2px solid white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(245, 168, 0, 0.4);
}

/* Restaurant Image Placeholder - Brand Gradient */
.restaurant-placeholder {
    background: linear-gradient(135deg, #f5a800, #db1c1f);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

/* Service Badges - Brand Colors */
.service-badge-delivery {
    background: rgba(245, 168, 0, 0.15) !important;
    color: #f5a800 !important;
    border: 1px solid #f5a800;
    font-weight: 600;
}

.service-badge-reservation {
    background: rgba(219, 28, 31, 0.15) !important;
    color: #db1c1f !important;
    border: 1px solid #db1c1f;
    font-weight: 600;
}

.service-badge-drivethru {
    background: rgba(245, 168, 0, 0.15) !important;
    color: #db1c1f !important;
    border: 1px solid #db1c1f;
    font-weight: 600;
}

/* Action Buttons - Brand Gradient */
.btn-brand-yellow {
    background: linear-gradient(135deg, #f5a800, #d49400) !important;
    color: #343a40 !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-brand-yellow:hover {
    background: linear-gradient(135deg, #d49400, #f5a800) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 168, 0, 0.4);
    color: #343a40 !important;
}

.btn-brand-red {
    background: linear-gradient(135deg, #db1c1f, #b91c1c) !important;
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-brand-red:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 28, 31, 0.4);
    color: white !important;
}

/* Search and Filter Section */
.search-filter-section {
    background: linear-gradient(to bottom, #f5a800, #f5a800);
    border-bottom: 3px solid #db1c1f;
}

.search-input, .filter-select {
    background-color: #f9fafb;
    border: 2px solid #f5a800;
    transition: all 0.3s ease;
}

.search-input:focus, .filter-select:focus {
    border-color: #db1c1f;
    box-shadow: 0 0 0 4px rgba(219, 28, 31, 0.2);
    outline: none;
}

/* Map and List Headers */
.map-header, .list-header {
    background: white;
    border-bottom: 3px solid #f5a800;
}

.map-header h2, .list-header h2 {
    color: #db1c1f;
    font-weight: 700;
}

.map-header h2 i, .list-header h2 i {
    color: #f5a800;
}

/* Icons with Brand Colors */
.icon-brand-yellow {
    color: #f5a800;
}

.icon-brand-red {
    color: #db1c1f;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .restaurant-card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .search-filter-section {
        padding: 1rem 0;
    }
}

/* Countdown Hero (Diagonal Split) */
.countdown-hero {
    position: relative;
    background-color: var(--brand-red);
}
.countdown-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 85%);
    pointer-events: none;
}
.countdown-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(245,168,0,0.28), rgba(245,168,0,0));
    filter: blur(6px);
    pointer-events: none;
}

.count-box {
    background: rgba(255,255,255,0.09);
    border: 2px solid var(--brand-yellow);
    border-radius: 14px;
    padding: 18px 20px;
    min-width: 120px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    backdrop-filter: blur(4px);
}
.count-digit {
    color: var(--brand-yellow);
    letter-spacing: 0.02em;
}

.count-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(245,168,0,0.55);
    font-size: 0.85rem;
    font-weight: 600;
}

.count-row {
    align-items: flex-end;
}

.count-sep {
    color: var(--brand-yellow);
    font-size: 2.75rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(245,168,0,0.55);
}

/* Flip animation for digits */
.count-digit.flip {
    animation: flipIn 0.18s ease-out;
    transform-origin: bottom;
    display: inline-block;
}
@keyframes flipIn {
    0% { transform: rotateX(-90deg); opacity: 0; }
    100% { transform: rotateX(0); opacity: 1; }
}

/* Subtle pulse for seconds */
.count-digit[data-unit="seconds"] {
    animation: pulseSec 1s ease-in-out infinite;
}
@keyframes pulseSec {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Favori Ürünler Carousel Scrollbar Styles */
#productsCarousel {
    scrollbar-width: thin;
    scrollbar-color: #db1c1f #f1f1f1;
}

#productsCarousel::-webkit-scrollbar {
    height: 8px;
}

#productsCarousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#productsCarousel::-webkit-scrollbar-thumb {
    background: #db1c1f;
    border-radius: 10px;
    transition: background 0.3s ease;
}

#productsCarousel::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}