/* ===== COOKIE CONSENT MODAL STYLES ===== */

/* Cookie Modal Container */
.cookie-consent-modal {
    background: var(--bg-primary);
    border: 2px solid var(--gold-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Modal Header */
.cookie-consent-modal .modal-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 1.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.cookie-consent-modal .modal-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.cookie-consent-modal .text-gold {
    color: var(--gold-yellow);
}

/* Modal Body */
.cookie-consent-modal .modal-body {
    padding: 2rem;
    background: var(--bg-primary);
}

.cookie-intro {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Cookie Categories */
.cookie-categories {
    margin-top: 1.5rem;
}

.cookie-category {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.cookie-category:hover {
    background: var(--bg-tertiary);
    border-color: var(--gold-light);
    box-shadow: var(--shadow-soft);
}

.cookie-category h6 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

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

.cookie-description {
    padding-left: 2rem;
    line-height: 1.5;
}

/* Custom Toggle Switches */
.cookie-category .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    border: 2px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

.cookie-category .form-check-input:checked {
    background-color: var(--gold-yellow);
    border-color: var(--gold-yellow);
}

.cookie-category .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(243, 205, 79, 0.25);
    border-color: var(--gold-yellow);
}

.cookie-category .form-check-input:disabled {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Cookie Footer Info */
.cookie-footer-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 6px;
}

.cookie-footer-info a {
    color: var(--gold-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.cookie-footer-info a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Modal Footer */
.cookie-consent-modal .modal-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Button Styles */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-yellow) 0%, var(--gold-dark) 100%);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-primary);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-yellow) 100%);
    color: var(--text-primary);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    color: var(--gold-dark);
    border: 2px solid var(--gold-yellow);
    background: transparent;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all var(--transition-normal);
}

.btn-outline-gold:hover {
    background: var(--gold-yellow);
    color: var(--text-primary);
    border-color: var(--gold-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    background: transparent;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all var(--transition-normal);
}

.btn-outline-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Fixed Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-yellow) 0%, var(--gold-dark) 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    transition: all var(--transition-normal);
    z-index: 9999;
    display: none; /* Hidden by default, shown after consent decision */
}

.cookie-settings-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(243, 205, 79, 0.4);
}

.cookie-settings-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation for modal entrance */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-modal .modal-body {
        padding: 1.5rem;
    }

    .cookie-consent-modal .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-consent-modal .modal-footer .btn {
        width: 100%;
    }

    .cookie-settings-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .cookie-description {
        padding-left: 0;
        margin-top: 0.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-modal,
    .cookie-category,
    .btn-gold,
    .btn-outline-gold,
    .cookie-settings-btn {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.cookie-consent-modal .btn:focus,
.cookie-consent-modal .form-check-input:focus {
    outline: 2px solid var(--gold-yellow);
    outline-offset: 2px;
}
