/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    border-top: 3px solid #ff6b35;
    backdrop-filter: blur(10px);
    animation: slideUpCookie 0.5s ease-out;
}

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

.cookie-consent.hide {
    animation: slideDownCookie 0.3s ease-in forwards;
}

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

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

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h5 {
    color: #ff6b35;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.compliance-badges .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    font-weight: 500;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

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

.cookie-consent-text a {
    color: #ff6b35;
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

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

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.cookie-consent-btn:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.cookie-consent-btn.btn-accept {
    background: #ff6b35;
    color: #ffffff;
}

.cookie-consent-btn.btn-accept:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cookie-consent-btn.btn-reject {
    background: transparent;
    color: #cccccc;
    border: 2px solid #555555;
}

.cookie-consent-btn.btn-reject:hover {
    background: #555555;
    color: #ffffff;
    border-color: #666666;
}

.cookie-consent-btn.btn-customize {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.cookie-consent-btn.btn-customize:hover {
    background: #ff6b35;
    color: #ffffff;
}

/* Cookie Preferences Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    color: #333333;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #f0f0f0;
    color: #333333;
}

.cookie-modal-description {
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    color: #333333;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-category-description {
    color: #666666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #ff6b35;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle-disabled .cookie-toggle-slider {
    cursor: not-allowed;
    background-color: #28a745 !important;
}

.cookie-always-active {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cookie-modal-actions {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-consent-text {
        min-width: unset;
    }
    
    .cookie-consent-text h5 {
        font-size: 1rem;
        justify-content: center;
    }
    
    .compliance-badges {
        justify-content: center;
    }
    
    .compliance-badges .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-consent-btn {
        min-width: 100px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
    }
    
    .cookie-modal-title {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}