/* Cookie Notice Styles for The Maroon Yarn */
/* Standard cookie compliance notice for all pages */

.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--r);
    padding: var(--s3);
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent);
    z-index: 9999;
    animation: noticeSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-notice-content h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: var(--s1);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-notice-content p {
    margin-bottom: var(--s2);
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-notice-buttons {
    display: flex;
    gap: var(--s1);
    margin: var(--s2) 0;
    flex-wrap: wrap;
}

.cookie-notice-accept,
.cookie-notice-settings,
.cookie-notice-reject {
    padding: 10px 20px;
    border-radius: var(--r);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.cookie-notice-accept {
    background: var(--accent);
    color: var(--accent-ink);
}

.cookie-notice-accept:hover {
    background: color-mix(in srgb, var(--accent) 90%, black);
    transform: translateY(-2px);
}

.cookie-notice-settings {
    background: var(--surface2);
    color: var(--text);
    border: 2px solid var(--line);
}

.cookie-notice-settings:hover {
    background: color-mix(in srgb, var(--surface2) 90%, black);
    transform: translateY(-2px);
}

.cookie-notice-reject {
    background: transparent;
    color: var(--muted);
    border: 2px solid var(--muted);
}

.cookie-notice-reject:hover {
    background: var(--surface2);
    color: var(--text);
    transform: translateY(-2px);
}

.cookie-notice-links {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: var(--s2);
    text-align: center;
}

.cookie-notice-links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 5px;
}

.cookie-notice-links a:hover {
    text-decoration: underline;
}

/* Cookie Preferences Overlay */
.cookie-preferences-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease-out;
}

.cookie-preferences-popup {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--r);
    padding: var(--s3);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent);
    animation: slideDown 0.3s ease-out;
}

.cookie-preferences-popup h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: var(--s2);
    font-size: 1.4rem;
}

.cookie-preference {
    margin-bottom: var(--s2);
    padding: var(--s1);
    background: var(--surface2);
    border-radius: 8px;
    border: 1px solid var(--line);
}

.cookie-preference label {
    display: block;
    cursor: pointer;
}

.cookie-preference input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.cookie-preference strong {
    color: var(--text);
    font-size: 1rem;
}

.cookie-preference p {
    margin: 5px 0 0 25px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.cookie-preferences-buttons {
    display: flex;
    gap: var(--s1);
    margin-top: var(--s2);
}

.save-preferences,
.cancel-preferences {
    padding: 10px 20px;
    border-radius: var(--r);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 1;
}

.save-preferences {
    background: var(--accent);
    color: var(--accent-ink);
}

.save-preferences:hover {
    background: color-mix(in srgb, var(--accent) 90%, black);
    transform: translateY(-2px);
}

.cancel-preferences {
    background: var(--surface2);
    color: var(--text);
    border: 2px solid var(--line);
}

.cancel-preferences:hover {
    background: color-mix(in srgb, var(--surface2) 90%, black);
    transform: translateY(-2px);
}

/* Animations */
@keyframes noticeSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .normal-cookie-popup {
        width: 95%;
        padding: var(--s2);
        bottom: 10px;
    }
    
    .normal-cookie-buttons {
        flex-direction: column;
    }
    
    .normal-cookie-accept,
    .normal-cookie-settings,
    .normal-cookie-reject {
        width: 100%;
    }
    
    .cookie-settings-popup {
        width: 95%;
        padding: var(--s2);
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
    
    .save-settings,
    .cancel-settings {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .normal-cookie-content h3 {
        font-size: 1.1rem;
    }
    
    .normal-cookie-content p {
        font-size: 0.9rem;
    }
    
    .normal-cookie-links {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .normal-cookie-popup,
    .cookie-settings-overlay {
        display: none !important;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .normal-cookie-popup,
    .cookie-settings-overlay,
    .cookie-settings-popup {
        animation: none;
    }
    
    .normal-cookie-accept:hover,
    .normal-cookie-settings:hover,
    .normal-cookie-reject:hover,
    .save-settings:hover,
    .cancel-settings:hover {
        transform: none;
    }
}