/* DWD Transfer Booking - Global Styles */

:root {
    --dwd-primary: #0066cc;
    --dwd-success: #28a745;
    --dwd-danger: #dc3545;
    --dwd-warning: #ffc107;
    --dwd-info: #17a2b8;
    --dwd-light: #f8f9fa;
    --dwd-dark: #343a40;
    --dwd-border: #e0e0e0;
    --dwd-radius: 5px;
    --dwd-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --dwd-transition: all 0.3s ease;
}

/* Reset ve Base Styles */
.dwd-booking-form-wrapper *,
.dwd-transfer-search-wrapper *,
.dwd-tracking-wrapper * {
    box-sizing: border-box;
}

/* Container Stilleri */
.dwd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
.dwd-heading-1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dwd-dark);
}

.dwd-heading-2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dwd-dark);
}

.dwd-heading-3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dwd-dark);
}

/* Result Card Styles */
.dwd-result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 10px;
    color: #fff;
    margin-top: 20px;
    animation: dwd-fadeIn 0.5s ease;
}

@keyframes dwd-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dwd-result-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.dwd-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dwd-result-details p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dwd-result-details i {
    font-size: 18px;
}

.dwd-result-price {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
}

.dwd-continue-button {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dwd-transition);
}

.dwd-continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Utilities */
.dwd-text-center {
    text-align: center;
}

.dwd-text-right {
    text-align: right;
}

.dwd-mt-1 { margin-top: 10px; }
.dwd-mt-2 { margin-top: 20px; }
.dwd-mt-3 { margin-top: 30px; }
.dwd-mb-1 { margin-bottom: 10px; }
.dwd-mb-2 { margin-bottom: 20px; }
.dwd-mb-3 { margin-bottom: 30px; }
.dwd-pt-1 { padding-top: 10px; }
.dwd-pt-2 { padding-top: 20px; }
.dwd-pt-3 { padding-top: 30px; }
.dwd-pb-1 { padding-bottom: 10px; }
.dwd-pb-2 { padding-bottom: 20px; }
.dwd-pb-3 { padding-bottom: 30px; }

/* Grid System */
.dwd-grid {
    display: grid;
    gap: 20px;
}

.dwd-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dwd-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.dwd-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flex Utilities */
.dwd-flex {
    display: flex;
}

.dwd-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.dwd-flex-col {
    display: flex;
    flex-direction: column;
}

/* Card Styles */
.dwd-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--dwd-radius);
    box-shadow: var(--dwd-shadow);
}

.dwd-card-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--dwd-border);
}

.dwd-card-body {
    padding: 15px 0;
}

.dwd-card-footer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--dwd-border);
}

/* Badge Styles */
.dwd-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.dwd-badge-primary {
    background: var(--dwd-primary);
    color: #fff;
}

.dwd-badge-success {
    background: var(--dwd-success);
    color: #fff;
}

.dwd-badge-danger {
    background: var(--dwd-danger);
    color: #fff;
}

.dwd-badge-warning {
    background: var(--dwd-warning);
    color: #000;
}

.dwd-badge-info {
    background: var(--dwd-info);
    color: #fff;
}

/* Alert Styles */
.dwd-alert {
    padding: 15px;
    border-radius: var(--dwd-radius);
    margin-bottom: 15px;
}

.dwd-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dwd-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dwd-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.dwd-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Animation */
.dwd-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dwd-pulse {
    animation: dwd-pulse 1.5s ease-in-out infinite;
}

@keyframes dwd-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Icon Styles */
.dwd-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.dwd-icon-lg {
    width: 32px;
    height: 32px;
}

.dwd-icon-xl {
    width: 48px;
    height: 48px;
}

/* Responsive Tables */
.dwd-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dwd-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.dwd-table th,
.dwd-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--dwd-border);
}

.dwd-table th {
    background: var(--dwd-light);
    font-weight: 600;
    color: var(--dwd-dark);
}

.dwd-table tr:hover {
    background: #f8f9fa;
}

/* Progress Bar */
.dwd-progress {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.dwd-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--dwd-primary) 0%, #667eea 100%);
    transition: width 0.3s ease;
}

/* Tooltip */
.dwd-tooltip {
    position: relative;
    display: inline-block;
}

.dwd-tooltip .dwd-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.dwd-tooltip:hover .dwd-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Divider */
.dwd-divider {
    height: 1px;
    background: var(--dwd-border);
    margin: 20px 0;
}

.dwd-divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--dwd-border);
    margin: 0 20px;
}

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

/* Focus Styles */
.dwd-input:focus,
.dwd-select:focus,
.dwd-textarea:focus {
    outline: none;
    border-color: var(--dwd-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Disabled States */
.dwd-input:disabled,
.dwd-select:disabled,
.dwd-textarea:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Print Styles */
@media print {
    .dwd-no-print {
        display: none !important;
    }
    
    .dwd-booking-form-wrapper,
    .dwd-tracking-wrapper {
        box-shadow: none;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .dwd-result-details {
        grid-template-columns: 1fr;
    }
    
    .dwd-grid-2,
    .dwd-grid-3,
    .dwd-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .dwd-flex-between {
        flex-direction: column;
        gap: 10px;
    }
    
    .dwd-table {
        font-size: 14px;
    }
    
    .dwd-table th,
    .dwd-table td {
        padding: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dwd-light: #2d3748;
        --dwd-dark: #f7fafc;
        --dwd-border: #4a5568;
    }
}

/* Accessibility */
.dwd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .dwd-input,
    .dwd-select,
    .dwd-textarea {
        border-width: 3px;
    }
    
    .dwd-button {
        border: 3px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

.dwd-custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dwd-custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--dwd-primary);
    border-radius: 10px;
}

.dwd-custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}