/**
 * Cookie Consent Banner Styles
 * Matches TokenCalc dark theme
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(19, 19, 31, 0.95) 0%, rgba(24, 24, 42, 0.98) 100%);
    border-top: 1px solid rgba(91, 127, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#cookie-consent-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    flex-shrink: 0;
    color: #B794F6;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #B794F6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #D4A5FF;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #5B7FFF 0%, #B794F6 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(91, 127, 255, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(91, 127, 255, 0.4);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 640px) {
    #cookie-consent-banner {
        padding: 1rem 0.75rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }

    .cookie-consent-text {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-consent-buttons {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.75rem 1rem;
    }
}

/* Cookie settings link style (for footer) */
.cookie-settings-link {
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-settings-link:hover {
    color: var(--accent-light, #B794F6);
}
