/**
 * Cookie Consent Banner & Modal Styles
 * Nashville EDM Platform Theme
 */

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.15), rgba(131, 56, 236, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

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

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

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

.cookie-consent-message h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-message h3 i {
    color: #ff006e;
}

.cookie-consent-message p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

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

.cookie-consent-message a:hover {
    color: #ff006e;
}

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

.cookie-consent-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.cookie-consent-btn-accept:hover {
    background: linear-gradient(135deg, #8338ec, #00f5ff);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.5);
    transform: translateY(-2px);
}

.cookie-consent-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Preferences Modal */
.cookie-preferences-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-preferences-modal.show {
    opacity: 1;
}

.cookie-preferences-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-preferences-content {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 15, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 0, 110, 0.3);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 0, 110, 0.2);
}

.cookie-preferences-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-preferences-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ff006e, #8338ec, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cookie-preferences-header .close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.cookie-preferences-header .close-btn:hover {
    color: #ff006e;
}

.cookie-preferences-body {
    padding: 1.5rem;
}

.cookie-preferences-body > p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.consent-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
}

.consent-status strong {
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.status-accepted {
    color: #4ade80;
}

.status-accepted i {
    margin-right: 0.5rem;
}

.consent-status:has(.status-accepted) {
    border-left-color: #4ade80;
}

.status-declined {
    color: #f87171;
}

.status-declined i {
    margin-right: 0.5rem;
}

.consent-status:has(.status-declined) {
    border-left-color: #f87171;
}

.status-unknown {
    color: #fbbf24;
}

.status-unknown i {
    margin-right: 0.5rem;
}

.consent-status:has(.status-unknown) {
    border-left-color: #fbbf24;
}

.consent-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.consent-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.consent-info ul li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-preferences-modal .consent-info ul li i {
    color: #00f5ff;
    width: 20px;
    flex-shrink: 0;
}

.privacy-note {
    background: rgba(255, 0, 110, 0.1);
    border-left: 3px solid #ff006e;
    padding: 1rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.privacy-note i {
    color: #ff006e;
    margin-right: 0.5rem;
}

.privacy-note a {
    color: #00f5ff;
    text-decoration: underline;
}

.privacy-note a:hover {
    color: #ff006e;
}

.cookie-preferences-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-preferences-footer button {
    flex: 1;
    min-width: 150px;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cookie-preferences-footer .btn-accept {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.cookie-preferences-footer .btn-accept:hover {
    background: linear-gradient(135deg, #8338ec, #00f5ff);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.5);
    transform: translateY(-2px);
}

.cookie-preferences-footer .btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-preferences-footer .btn-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1rem;
    }
    
    #cookie-consent-banner .cookie-consent-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    #cookie-consent-banner .cookie-consent-message {
        min-width: 100%;
    }
    
    #cookie-consent-banner .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    #cookie-consent-banner .cookie-consent-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-preferences-modal .cookie-preferences-content {
        margin: 1rem;
    }
    
    .cookie-preferences-modal .cookie-preferences-footer {
        flex-direction: column;
    }
    
    .cookie-preferences-modal .cookie-preferences-footer button {
        width: 100%;
    }
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar styling for modal */
.cookie-preferences-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-preferences-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.cookie-preferences-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    border-radius: 4px;
}

.cookie-preferences-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8338ec, #00f5ff);
}
