/* cookie-consent.css - Mobile Optimized Cookie Consent */
.cookie-consent-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px 15px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 3px solid #f59e0b;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.cookie-consent-modal.active {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-header h2 {
    margin: 0;
    color: #f59e0b;
    font-size: 1.3rem;
    font-weight: 700;
}

.cookie-consent-body {
    line-height: 1.5;
}

.cookie-consent-body p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

.cookie-consent-links {
    margin: 10px 0;
}

.cookie-consent-links a {
    color: #f59e0b;
    text-decoration: underline;
    font-weight: 600;
    margin-right: 15px;
    font-size: 0.85rem;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    flex: 1;
    min-width: 120px;
    min-height: 50px;
    touch-action: manipulation;
}

.cookie-consent-btn:active {
    transform: scale(0.98);
}

.cookie-consent-btn.accept {
    background: #f59e0b;
    color: #000;
    font-weight: 700;
}

.cookie-consent-btn.accept:hover {
    background: #e58e0b;
}

.cookie-consent-btn.settings {
    background: transparent;
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.cookie-consent-btn.settings:hover {
    background: rgba(245, 158, 11, 0.1);
}

.cookie-consent-btn.reject {
    background: #6b7280;
    color: white;
}

.cookie-consent-btn.reject:hover {
    background: #5a6268;
}

/* Mobile-First Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    color: #1f2937;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookie-settings-modal.active {
    transform: translateY(0);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 2px solid #f59e0b;
    background: #f8fafc;
    flex-shrink: 0;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #1e3a8a;
    font-size: 1.4rem;
}

.close-settings {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.cookie-settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
    -webkit-overflow-scrolling: touch;
}

.cookie-settings-option {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}

.cookie-settings-option h3 {
    margin: 0 0 12px 0;
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-settings-option p {
    margin: 0 0 18px 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.toggle-label {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #f59e0b;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.cookie-settings-actions {
    display: flex;
    gap: 12px;
    padding: 20px 15px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cookie-settings-actions .cookie-consent-btn {
    flex: 1;
    min-height: 54px;
    font-size: 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile-Specific Enhancements */
@media (max-width: 480px) {
    .cookie-consent-modal {
        padding: 18px 12px;
    }
    
    .cookie-consent-header h2 {
        font-size: 1.2rem;
    }
    
    .cookie-consent-body p {
        font-size: 0.85rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-consent-btn {
        min-width: 100%;
        min-height: 54px;
        font-size: 1rem;
    }
    
    .cookie-settings-option {
        padding: 15px;
    }
    
    .cookie-settings-header {
        padding: 18px 12px;
    }
    
    .cookie-settings-content {
        padding: 18px 12px;
    }
    
    .cookie-settings-actions {
        padding: 18px 12px;
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .cookie-settings-modal {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: 90%;
        max-width: 500px;
        max-height: 80vh;
        border-radius: 12px;
        transform: translate(-50%, -50%) scale(0.9);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .cookie-settings-modal.active {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
    .toggle-switch {
        width: 68px;
        height: 34px;
    }
    
    .toggle-slider:before {
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(34px);
    }
    
    .cookie-consent-links a {
        display: inline-block;
        padding: 8px 0;
        min-height: 44px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-modal {
        border: 2px solid white;
    }
    
    .cookie-settings-option {
        border: 2px solid #1f2937;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-modal,
    .cookie-settings-modal,
    .toggle-slider {
        transition: none;
    }
}