/* Cookie Consent Styles */

/* Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 9999;
    border-top: 3px solid #F59E0B;
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .cookie-consent-container {
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cookie-consent-content {
        margin-bottom: 0;
        flex: 1;
    }
}

.cookie-consent-icon {
    flex-shrink: 0;
    animation: cookie-bounce 2s ease-in-out infinite;
}

@keyframes cookie-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.cookie-consent-text h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1F2937;
    margin: 0 0 0.5rem 0;
}

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

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .cookie-consent-actions {
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
}

/* Button Styles */
.btn-cookie-accept,
.btn-cookie-reject,
.btn-cookie-manage,
.btn-cookie-save {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-cookie-accept:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

.btn-cookie-reject {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.btn-cookie-reject:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

.btn-cookie-manage {
    background: transparent;
    color: #F59E0B;
    border: 1px solid #F59E0B;
}

.btn-cookie-manage:hover {
    background: #FEF3C7;
    border-color: #D97706;
}

.btn-cookie-save {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-cookie-save:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

/* Modal Styles */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-modal.show {
    opacity: 1;
}

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

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.cookie-modal-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1F2937;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.cookie-modal-close:hover {
    color: #4B5563;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.cookie-modal-body > p {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cookie-category.required {
    background: #FEF3C7;
    border-color: #FCD34D;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category h4 {
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.cookie-category p {
    color: #6B7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle label {
    display: block;
    width: 48px;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.cookie-toggle input[type="checkbox"]:checked + label {
    background: #10B981;
}

.cookie-toggle input[type="checkbox"]:checked + label::after {
    transform: translateX(24px);
}

.cookie-toggle input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Toast Notification */
.cookie-toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #10B981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: transform 0.3s ease;
}

.cookie-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .cookie-consent-banner {
        border-top-width: 2px;
    }
    
    .cookie-consent-container {
        padding: 1rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 1.125rem;
    }
    
    .btn-cookie-accept,
    .btn-cookie-reject,
    .btn-cookie-manage,
    .btn-cookie-save {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .cookie-consent-actions {
        width: 100%;
    }
    
    .cookie-consent-actions button {
        flex: 1;
        text-align: center;
    }
    
    .cookie-modal-content {
        margin: 0.5rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column-reverse;
    }
    
    .cookie-modal-footer button {
        width: 100%;
    }
}