/* GDPR Cookie Notice Component */
/* Include this CSS and JavaScript in all pages */

/* Cookie Notice Styles */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(247, 243, 237, 0.2);
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-notice.show {
    transform: translateY(0);
}

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

.cookie-notice-text {
    flex: 1;
    min-width: 250px;
    color: var(--color-bone);
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-notice-text a {
    color: var(--color-red-flag);
    text-decoration: underline;
}

.cookie-notice-text a:hover {
    color: var(--color-glitch-lime);
}

.cookie-notice-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--color-red-flag) 0%, #e63946 100%);
    color: var(--color-bone);
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--color-bone);
    border: 1px solid rgba(247, 243, 237, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(247, 243, 237, 0.1);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--color-glitch-lime);
    border: 1px solid var(--color-glitch-lime);
    font-size: 0.75rem;
}

.cookie-btn-settings:hover {
    background: var(--color-glitch-lime);
    color: var(--color-charcoal);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-notice-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
    }
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.cookie-settings-content {
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #1a1a1a 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid rgba(247, 243, 237, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--color-bone);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-settings-close {
    color: var(--color-bone);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.cookie-settings-close:hover {
    color: var(--color-red-flag);
}

.cookie-category {
    background: rgba(247, 243, 237, 0.05);
    border: 1px solid rgba(247, 243, 237, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-category h3 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-bone);
}

.cookie-category p {
    font-size: 0.875rem;
    color: var(--color-bone);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: rgba(247, 243, 237, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: var(--color-red-flag);
}

.toggle-switch .toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--color-bone);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

.cookie-settings-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .cookie-settings-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
}
