/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #667eea;
}

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

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

.cookie-consent-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.cookie-consent-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cookie-consent-icon i {
    font-size: 1.5rem;
    color: white;
}

.cookie-consent-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.cookie-consent-text a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: #5a67d8;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cookie-btn-secondary {
    background: #4a5568;
    color: white;
    border: 1px solid #718096;
}

.cookie-btn-secondary:hover {
    background: #2d3748;
    transform: translateY(-1px);
}

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

.cookie-btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Cookie Preference Modal */
.cookie-preference-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-preference-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-preference-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.cookie-preference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-preference-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.cookie-preference-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-preference-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.cookie-preference-body {
    padding: 2rem;
}

.cookie-preference-intro {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Cookie Categories */
.cookie-category {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
}

.cookie-category-info p {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.cookie-category-toggle {
    flex-shrink: 0;
}

.cookie-category-checkbox {
    display: none;
}

.cookie-toggle-label {
    display: block;
    width: 50px;
    height: 28px;
    background: #cbd5e0;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-category-checkbox:checked + .cookie-toggle-label {
    background: #667eea;
}

.cookie-category-checkbox:checked + .cookie-toggle-label .cookie-toggle-slider {
    transform: translateX(22px);
}

.cookie-category-checkbox:disabled + .cookie-toggle-label {
    background: #e2e8f0;
    cursor: not-allowed;
}

.cookie-category-details {
    padding: 1.5rem;
    background: white;
}

.cookie-category-details p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cookie-category-examples {
    font-size: 0.9rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.cookie-preference-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cookie-preference-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cookie-preference-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.cookie-preference-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.cookie-preference-links a:hover {
    text-decoration: underline;
}

/* Cookie Settings Button */
.cookie-settings-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.cookie-settings-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cookie-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.cookie-settings-btn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-consent-header {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-preference-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .cookie-preference-header,
    .cookie-preference-body,
    .cookie-preference-footer {
        padding: 1.5rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-preference-actions {
        flex-direction: column;
    }
    
    .cookie-preference-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .cookie-settings-button {
        bottom: 1rem;
        right: 1rem;
    }
    
    .cookie-settings-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

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

.cookie-consent-banner.show {
    animation: slideUpIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation for modal appearance */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-preference-modal.show .cookie-preference-content {
    animation: modalIn 0.3s ease;
}
