/**
 * Cookie Consent Styles
 */

/* Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 3px solid var(--color-primary);
}

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

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

.cookie-banner-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Modal */
#cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

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

.cookie-modal-container {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

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

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

.close-modal-btn:hover {
    color: #333;
}

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

.cookie-option-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.cookie-option-content {
    flex: 1;
}

.cookie-option-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.cookie-option-title label {
    font-weight: 700;
    color: #333;
    margin: 0;
    cursor: pointer;
}

.cookie-option-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked + .slider {
    background-color: var(--color-primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    background-color: #e9e9e9;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px;
    background: var(--bg-body);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
}

/* Utilities */
.btn-cookie {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.btn-cookie-primary {
    background: #333;
    color: #fff;
}

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

.btn-cookie-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-cookie-outline:hover {
    background: #eee;
}

.btn-cookie-gold {
    background: var(--color-primary);
    color: #fff;
}

.btn-cookie-gold:hover {
    background: var(--color-primary-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-banner-actions .btn-cookie {
        flex: 1;
        text-align: center;
    }
}
