/* =====================================================
   Modular CSS System
   ===================================================== */

/* Temel Sistemler */
@import './reset.css';
@import './typography.css';
@import './layout.css';
@import './premium-styles.css';

/* =====================================================
   BASE STYLES - Premium Platform Premium Level
   ===================================================== */

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

/* =====================================================
   CUSTOM SCROLLBAR - THEME INTEGRATED PREMIUM
   ===================================================== */

/* Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    border: 2px solid var(--surface-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar-corner {
    background: var(--surface-color);
    border-radius: 12px;
}

/* Firefox Scrollbar - Modern Design */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--surface-color);
}

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

/* Mobile Safari - iOS Smooth Scrolling */
body {
    -webkit-overflow-scrolling: touch;
}

/* Enhanced Scrollbar for Containers */
.scrollable-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.scrollable-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

body {
    font-family: var(--font-family-primary);
    background: var(--background-color);
    color: var(--text-color);
    line-height: var(--leading-normal);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px; /* Fixed header space */
}

/* Overflow-x sadece büyük ekranlarda */
@media (min-width: 769px) {
    html {
        overflow-x: hidden;
    }
}

/* Mobile header padding */
@media (max-width: 768px) {
    body {
        padding-top: 64px !important; /* Mobile header height */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--text-dark);
    margin: 0;
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
    line-height: var(--leading-relaxed);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* =====================================================
   PREMIUM BUTTON SYSTEM - Premium Platform Killer Level
   ===================================================== */

/* Base Button Class - Premium Foundation */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family-primary);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: var(--primary-color);
    color: var(--white);
}

/* Premium Hover Base Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

/* Icon Animation */
.btn i {
    transition: transform 0.3s ease;
    font-size: 1.1em;
}

.btn:hover i {
    transform: translateX(2px);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Primary Button - Premium Gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.25);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Secondary Button - Elegant Border */
.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.25);
}

.btn-secondary:hover::before {
    left: 0;
}

/* Success Button - Smooth Transition */
.btn-success {
    background: var(--gradient-success, linear-gradient(135deg, var(--success-color) 0%, var(--success-color) 100%));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--success-color-rgb), 0.25);
}

.btn-success:hover {
    background: var(--gradient-success-hover, linear-gradient(135deg, var(--success-color) 0%, var(--success-color) 100%));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--success-color-rgb), 0.35);
}

/* Size Variations */
.btn-large {
    padding: var(--space-lg) calc(var(--space-xl) * 1.5);
    font-size: var(--font-size-lg);
    min-height: 56px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-small {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

/* Icon-only Button */
.btn-icon {
    padding: var(--space-md);
    min-width: 48px;
    border-radius: 50%;
}

/* Floating Action Button */
.btn-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.btn-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Glow Effect Button */
.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(25, 118, 210, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(25, 118, 210, 0.8);
    }
}

/* Outline Variations */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.25);
}

/* Loading State */
.btn-loading {
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Disabled State */
.btn:disabled,
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover,
.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

input, select, textarea {
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: var(--transition-fast);
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px; /* iOS ZOOM PREVENTION - GLOBAL */
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

ul, ol {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   GLOBAL MOBILE RESPONSIVE SYSTEM
   Premium Platform/Viator Seviyesi Cross-Module Standards
   ===================================================== */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* STANDARD MOBİL (768px ve altı) */
@media (max-width: 768px) {
    /* CONTAINER GLOBAL STANDARD */
    .container {
        padding: 0 1rem; /* Tüm modüllerde standart */
    }
    
    /* TYPOGRAPHY MOBİL STANDARDS */
    h1, .text-4xl {
        font-size: 2rem !important; /* Küçült: 4xl → 2rem */
        line-height: 1.2;
    }
    
    h2, .text-3xl {
        font-size: 1.75rem !important; /* Küçült: 3xl → 1.75rem */
        line-height: 1.25;
    }
    
    h3, .text-2xl {
        font-size: 1.5rem !important; /* Küçült: 2xl → 1.5rem */
        line-height: 1.3;
    }
    
    h4, .text-xl {
        font-size: 1.25rem !important; /* Küçült: xl → 1.25rem */
        line-height: 1.3;
    }
    
    /* SECTION STANDARDS */
    section {
        padding: 3rem 0; /* Küçült: xl → 3rem */
    }
    
    .hero-section {
        padding: 60px 0 40px; /* Küçült: 120px → 60px */
    }
    
    .section-header {
        margin-bottom: 2rem; /* Küçült: 3rem → 2rem */
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem !important; /* Küçült: 4xl → 2rem */
        margin-bottom: 1rem; /* Küçült: lg → 1rem */
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem !important; /* Küçült: lg → 1rem */
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* BUTTON GLOBAL MOBILE STANDARDS */
    .btn {
        min-height: 48px; /* Touch-friendly (Apple/Google guidelines) */
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 24px;
        touch-action: manipulation; /* Better touch response */
        -webkit-tap-highlight-color: var(--black-faint);
    }
    
    .btn-large, .btn-lg {
        min-height: 52px;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        border-radius: 26px;
    }
    
    .btn-small, .btn-sm {
        min-height: 44px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 22px;
    }
    
    .btn-icon {
        min-width: 48px;
        min-height: 48px;
        padding: 0.75rem;
    }
    
    /* CARD MOBILE STANDARDS */
    .card {
        border-radius: 16px; /* Küçült: xl → 16px */
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: translateY(-2px); /* Küçült hover effect */
    }
    
    .card-small {
        border-radius: 12px; /* Küçült: lg → 12px */
    }
    
    /* GRID MOBILE STANDARDS */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr; /* Tükler tek kolon */
        gap: 1.5rem; /* Küçült gap */
    }
    
    /* INPUT MOBILE STANDARDS - iOS ZOOM PREVENTION */
    input, select, textarea {
        min-height: 48px; /* Touch-friendly */
        padding: 1rem;
        font-size: 16px !important; /* iOS ZOOM PREVENTION - MUST BE 16px */
        border-radius: 12px;
        -webkit-appearance: none; /* Remove iOS default styling */
        -webkit-border-radius: 12px; /* Force iOS border radius */
        touch-action: manipulation;
    }
    
    /* SEARCH INPUTS SPECIFIC */
    input[type="search"],
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"] {
        font-size: 16px !important; /* iOS ZOOM PREVENTION */
        transform: translateZ(0); /* Hardware acceleration */
    }
    
    /* FAB MOBILE OPTIMIZATION */
    .btn-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 52px;
        height: 52px;
    }
}

/* KÜÇÜK MOBİL (480px ve altı) */
@media (max-width: 480px) {
    /* CONTAINER KÜÇÜK MOBİL */
    .container {
        padding: 0 0.75rem; /* Daha az padding */
    }
    
    /* TYPOGRAPHY KÜÇÜK MOBİL */
    h1, .text-4xl {
        font-size: 1.75rem !important; /* Daha küçük */
    }
    
    h2, .text-3xl {
        font-size: 1.5rem !important;
    }
    
    h3, .text-2xl {
        font-size: 1.3rem !important;
    }
    
    /* SECTION KÜÇÜK MOBİL */
    section {
        padding: 2.5rem 0; /* Daha kompakt */
    }
    
    .hero-section {
        padding: 50px 0 30px;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 0.875rem;
    }
    
    /* BUTTON KÜÇÜK MOBİL */
    .btn {
        min-height: 46px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 23px;
    }
    
    .btn-large, .btn-lg {
        min-height: 50px;
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    .btn-small, .btn-sm {
        min-height: 42px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        min-width: 46px;
        min-height: 46px;
    }
    
    /* CARD KÜÇÜK MOBİL */
    .card {
        border-radius: 14px;
    }
    
    .card-small {
        border-radius: 10px;
    }
    
    /* GRID KÜÇÜK MOBİL */
    .grid-2, .grid-3, .grid-4 {
        gap: 1.25rem;
    }
    
    /* INPUT KÜÇÜK MOBİL - iOS ZOOM PREVENTION */
    input, select, textarea {
        min-height: 46px;
        padding: 0.875rem;
        font-size: 16px !important; /* iOS ZOOM PREVENTION */
    }
    
    .btn-fab {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

/* ÇOK KÜÇÜK EKRANLAR (360px ve altı) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1, .text-4xl {
        font-size: 1.6rem !important;
    }
    
    h2, .text-3xl {
        font-size: 1.4rem !important;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 40px 0 25px;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-large, .btn-lg {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-small, .btn-sm {
        min-height: 40px;
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
    
    input, select, textarea {
        min-height: 44px;
        padding: 0.75rem;
        font-size: 16px !important; /* iOS ZOOM PREVENTION */
    }
    
    .btn-fab {
        width: 44px;
        height: 44px;
    }
}

/* LANDSCAPE ORİENTASYON (Yatay tutma) */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 1.5rem 0; /* Çok kompakt */
    }
    
    .hero-section {
        padding: 30px 0 20px;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
    
    .btn {
        min-height: 40px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-fab {
        bottom: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
}

/* Standard Section Spacing */
section {
    padding: var(--space-xl) 0;
}

.hero-section {
    padding: 120px 0 80px;
}

/* GLOBAL MOBILE PERFORMANCE OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Reduce paint complexity on mobile */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Optimize scrolling performance */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Reduce box-shadow complexity on mobile */
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    
    .btn {
        box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* GLOBAL MOBILE TYPOGRAPHY OPTIMIZATION */
@media (max-width: 768px) {
    /* Optimize font loading on mobile */
    body {
        font-display: swap; /* Faster font rendering */
    }
    
    /* Better text contrast on mobile */
    h1, h2, h3, h4, h5, h6 {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
    
    /* Prevent text size adjustment on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* Standard Card Styles - Ana Sayfa Standardı */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-small {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-small:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Standard Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

/* Grid responsive handling moved to main mobile section above */

.section-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Responsive utilities */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Premium Button Aliases for backward compatibility */
.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.btn-lg {
    padding: var(--space-lg) calc(var(--space-xl) * 1.5);
    font-size: var(--font-size-lg);
    min-height: 56px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.25);
}

/* Warning and Danger buttons */
.btn-warning {
    background: var(--gradient-warning, linear-gradient(135deg, var(--warning-color) 0%, var(--warning-color) 100%));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--warning-color-rgb), 0.25);
}

.btn-warning:hover {
    background: var(--gradient-warning-hover, linear-gradient(135deg, var(--warning-color) 0%, var(--warning-color) 100%));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--warning-color-rgb), 0.35);
}

.btn-danger {
    background: var(--gradient-error, linear-gradient(135deg, var(--error-color) 0%, var(--error-color) 100%));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--error-color-rgb), 0.25);
}

.btn-danger:hover {
    background: var(--gradient-error-hover, linear-gradient(135deg, var(--error-color) 0%, var(--error-color) 100%));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* =====================================================
   CROSS-BROWSER MOBİL UYUMLULUK - GLOBAL STANDARDS
   Premium Platform/Viator Seviyesi System-Wide Compatibility
   ===================================================== */

/* iOS Safari özel düzeltmeler */
@supports (-webkit-touch-callout: none) {
    /* Tüm butonlarda iOS tap highlight */
    .btn,
    button,
    [role="button"],
    .card,
    .faq-question,
    .category-filter {
        -webkit-tap-highlight-color: rgba(0,102,204,0.2);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Tüm input'larda iOS styling kaldırma */
    input,
    select,
    textarea {
        -webkit-appearance: none;
        -webkit-border-radius: 12px; /* iOS'ta border radius force etme */
        border-radius: 12px;
    }
    
    /* iOS input zoom engelleme - GLOBAL STANDARD */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* iOS zoom prevention */
        transform: translateZ(0); /* Hardware acceleration */
    }
    
    /* iOS safe area support - Tüm modüller için */
    @media screen and (max-height: 812px) and (max-width: 414px) {
        body {
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        .btn-fab {
            bottom: calc(1rem + env(safe-area-inset-bottom));
        }
        
        section:last-child,
        .footer,
        .newsletter,
        .faq,
        .trust-safety {
            padding-bottom: calc(3rem + env(safe-area-inset-bottom));
        }
    }
    
    /* iOS momentum scrolling - Global */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android WebView özel düzeltmeler */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    /* Android için minimum touch target sizes */
    .btn,
    button,
    [role="button"],
    input,
    select {
        min-height: 48px !important;
        min-width: 48px;
    }
    
    .btn-small,
    .btn-sm {
        min-height: 44px !important;
    }
    
    /* Android Material Design colors */
    .btn-primary:focus,
    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--primary-color); /* Material blue */
        box-shadow: 0 0 0 2px rgba(25,118,210,0.2);
    }
    
    /* Android touch feedback */
    .btn:active,
    .card:active,
    button:active {
        background-color: var(--shadow-black-05);
        transform: scale(0.98);
    }
    
    /* Android scrollbar styling */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f0f0f0;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

/* Samsung Internet Browser */
@media screen and (max-width: 768px) {
    /* Samsung'da button styling */
    .btn {
        border: none;
        outline: none;
    }
    
    .btn:focus {
        outline: 2px solid rgba(0,102,204,0.5);
        outline-offset: 2px;
    }
}

/* Edge Legacy uyumluluğu */
@supports (-ms-accelerator: true) {
    .btn {
        border: 2px solid transparent;
    }
    
    .grid-2, .grid-3, .grid-4 {
        display: -ms-grid;
    }
}

/* Firefox Mobile */
@-moz-document url-prefix() {
    .btn {
        -moz-appearance: none;
    }
    
    input, select, textarea {
        -moz-appearance: none;
    }
}

/* GLOBAL TOUCH OPTIMIZATION */
@media (hover: none) and (pointer: coarse) {
    /* Sadece touch device'larda */
    .btn:hover {
        transform: none; /* Hover effect'leri kaldır */
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Touch device'larda active state'leri güçlendir */
    .btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    .card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* HIGH DPI DISPLAYS (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2) {
    /* High DPI için font smoothing */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* High DPI'da border'ları daha ince yap */
    .card,
    input,
    select,
    textarea {
        border-width: 0.5px;
    }
}

/* PERFORMANCE OPTIMIZATION */
.btn,
.card,
input,
select,
textarea {
    will-change: transform; /* Hardware acceleration hint */
    transform: translateZ(0); /* Force GPU acceleration */
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
    /* Motion sensitivity için animasyonları azalt */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn:hover,
    .card:hover {
        transform: none !important;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 1px solid currentColor;
    }
}

/* DARK MODE PREFERENCE */
@media (prefers-color-scheme: dark) {
    /* Dark mode tercih edenler için gölgeleri azalt */
    .card {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
    
    .btn {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
}

/* =====================================================
   CHATBOT MOBİL OPTİMİZASYON - HER ZAMAN KAPALI
   ===================================================== */

/* CHATBOT STYLES - DISABLED/REMOVED FROM DESKTOP */
/* Note: Chatbot functionality is currently disabled
   These styles are kept for reference but not active */

/* 
.chatbot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
    z-index: 9998; /* Header altında */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9; /* Biraz saydam */
}

.chatbot-toggle-btn:hover {
    transform: scale(1.05);
    opacity: 1;
}

.chatbot-toggle-btn:active {
    transform: scale(0.95);
}

/* CHATBOT WIDGET - MOBİLDE FULL SCREEN MODAL */
.chatbot-widget {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none; /* Default gizli */
}

.chatbot-widget.mobile-open {
    display: flex;
    align-items: flex-end;
    animation: chatbotModalIn 0.3s ease-out;
}

.chatbot-container {
    width: 100%;
    height: 75vh;
    background: white;
    border-radius: 16px 16px 0 0;
    animation: chatbotSlideUp 0.3s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chatbot-input-area {
    padding: 1rem;
    border-top: 1px solid #e0e6ed;
    background: #f8f9fa;
}

/* DESKTOP CHATBOT GİZLE */
@media (min-width: 769px) {
    .chatbot-toggle-btn {
        display: none;
    }
    
    /* Desktop'da normal chatbot widget olacak */
    .chatbot-widget {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 350px;
        height: 500px;
        max-height: 80vh;
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        display: none; /* Default kapalı */
    }
    
    .chatbot-container {
        height: 100%;
        border-radius: 16px;
    }
    
    .chatbot-header {
        border-radius: 16px 16px 0 0;
    }
}

/* MOBİL CHATBOT ANIMATIONS */
@keyframes chatbotModalIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

@keyframes chatbotSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* MOBİL CHATBOT KÜÇÜK EKRANLAR */
@media (max-width: 480px) {
    .chatbot-toggle-btn {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    
    .chatbot-container {
        height: 80vh; /* Daha büyük mobilde */
    }
}

/* ÇOK KÜÇÜK EKRANLAR */
@media (max-width: 360px) {
    .chatbot-toggle-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .chatbot-container {
        height: 85vh; /* En büyük mobilde */
    }
}
*/

/* END OF DISABLED CHATBOT STYLES */

/* =====================================================
   ACCESSIBILITY UTILITIES
   ===================================================== */

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

