/* Cookie Management System Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #2563eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cookie-header h3 {
    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.cookie-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-preferences {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: none;
}

.cookie-preferences.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-checkbox {
    margin-top: 2px;
}

.cookie-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.cookie-checkbox input[type="checkbox"]:checked {
    background: #2563eb;
    border-color: #2563eb;
}

.cookie-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.cookie-checkbox input[type="checkbox"]:disabled {
    background: #e5e7eb;
    border-color: #d1d5db;
    cursor: not-allowed;
}

.cookie-checkbox input[type="checkbox"]:disabled::after {
    content: '✓';
    color: #6b7280;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-title {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 5px;
}

.cookie-category-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn:active {
    transform: translateY(0);
}

.cookie-btn-primary {
    background: #2563eb;
    color: white;
}

.cookie-btn-primary:hover {
    background: #1d4ed8;
}

.cookie-btn-secondary {
    background: #6b7280;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #4b5563;
}

.cookie-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.cookie-btn-outline:hover {
    background: #2563eb;
    color: white;
}

.cookie-btn-text {
    background: transparent;
    color: #6b7280;
    border: none;
    text-decoration: underline;
    padding: 5px 10px;
}

.cookie-btn-text:hover {
    color: #2563eb;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        gap: 12px;
    }
    
    .cookie-header h3 {
        font-size: 16px;
    }
    
    .cookie-text {
        font-size: 13px;
    }
    
    .cookie-actions {
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .cookie-category {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .cookie-checkbox {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-category-title {
        font-size: 13px;
    }
    
    .cookie-category-description {
        font-size: 12px;
    }
}

/* Accessibility */
.cookie-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.cookie-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #ffffff;
        border-top: 4px solid #000000;
    }
    
    .cookie-checkbox input[type="checkbox"] {
        border: 3px solid #000000;
    }
    
    .cookie-checkbox input[type="checkbox"]:checked {
        background: #000000;
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner.show {
        animation: none;
    }
    
    .cookie-preferences.show {
        animation: none;
    }
    
    .cookie-btn:hover {
        transform: none;
    }
}