/* ============================================
   COOKIE-CONSENT.CSS - Cookie Consent System
   ============================================ */

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: var(--white-pure);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-consent-header {
    padding: 20px 25px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-icon {
    width: 48px;
    height: 48px;
    background: rgba(230,184,0,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.cookie-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 4px;
}

.cookie-title p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.cookie-content {
    padding: 20px 25px;
}

.cookie-content p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-link {
    color: var(--gold-primary);
    font-weight: 600;
    text-decoration: underline;
    transition: 0.3s ease;
}

.cookie-link:hover {
    color: var(--gold-dark);
    text-decoration: none;
}

/* Cookie Preferences */
.cookie-preferences {
    margin: 20px 0;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-option:last-child {
    border-bottom: none;
}

.option-text {
    flex: 1;
}

.option-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 4px;
}

.option-text p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 15px;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--white-pure);
    transition: 0.3s;
    border-radius: 50%;
}

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

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

input:disabled + .switch-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cookie Actions */
.cookie-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cookie-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    border: none;
}

.cookie-btn-primary {
    background: var(--gold-primary);
    color: var(--navy-deep);
}

.cookie-btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230,184,0,0.2);
}

.cookie-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.cookie-btn-secondary:hover {
    background: var(--gray-200);
}

.cookie-btn-link {
    background: transparent;
    color: var(--gray-600);
    text-decoration: underline;
}

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

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--navy-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-pure);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    border: 2px solid var(--gold-primary);
}

.cookie-settings-btn.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-btn:hover {
    transform: rotate(90deg);
    background: var(--gold-primary);
    color: var(--navy-deep);
}

/* Form Disabled State */
.form-disabled {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.form-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 10;
}

.form-cookie-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--navy-deep);
    color: var(--white-pure);
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 11;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--gold-primary);
}

.form-cookie-message p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.form-cookie-message .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .cookie-consent {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-settings-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}