/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #1d1f66;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept-all {
    background: #1d1f66;
    color: white;
}

.cookie-btn.accept-all:hover {
    background: #2d3f99;
    transform: translateY(-1px);
}

.cookie-btn.necessary {
    background: #6c757d;
    color: white;
}

.cookie-btn.necessary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.cookie-btn.settings {
    background: transparent;
    color: #1d1f66;
    border: 2px solid #1d1f66;
}

.cookie-btn.settings:hover {
    background: #1d1f66;
    color: white;
    transform: translateY(-1px);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-content h3 {
    color: #1d1f66;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.cookie-option {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.cookie-option:hover {
    border-color: #1d1f66;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1d1f66;
    cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-option p {
    margin: 0;
    padding-left: 2.25rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cookie-modal-buttons .cookie-btn {
    min-width: 120px;
}

/* Cookie Preferences Indicator */
.cookie-preferences-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #1d1f66;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(29, 31, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.cookie-preferences-btn.show {
    display: block;
}

.cookie-preferences-btn:hover {
    background: #2d3f99;
    transform: scale(1.1);
}

.cookie-preferences-btn::before {
    content: '🍪';
}

/* Cookie Status Bar */
.cookie-status {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #666;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-status.show {
    opacity: 1;
    visibility: visible;
}

.cookie-status.accepted {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.cookie-status.necessary-only {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Responsive Design for Cookie Components */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
    }
    
    .cookie-content p {
        min-width: auto;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons .cookie-btn {
        width: 100%;
    }
    
    .cookie-preferences-btn {
        bottom: 80px;
        right: 20px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        padding: 1rem 0.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .cookie-modal-content {
        padding: 1rem;
        max-height: 90vh;
    }
    
    .cookie-option {
        padding: 0.75rem;
    }
    
    .cookie-option label {
        font-size: 0.9rem;
    }
    
    .cookie-preferences-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 70px;
    }
}

/* Animation for cookie banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.animate {
    animation: slideUp 0.5s ease;
}

/* Focus styles for accessibility */
.cookie-btn:focus,
.cookie-preferences-btn:focus,
.cookie-option input:focus {
    outline: 3px solid rgba(29, 31, 102, 0.3);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        border-top: 5px solid #1d1f66;
    }
    
    .cookie-btn {
        border: 2px solid currentColor;
    }
    
    .cookie-option {
        border: 2px solid #1d1f66;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal,
    .cookie-modal-content,
    .cookie-preferences-btn {
        transition: none;
    }
    
    .cookie-banner.animate {
        animation: none;
    }
}

/* Print styles - hide cookie elements */
@media print {
    .cookie-banner,
    .cookie-modal,
    .cookie-preferences-btn,
    .cookie-status {
        display: none !important;
    }
}
