/* Cookie Consent Notification System - Modern Black/White Theme */

/* ====================================== */
/* COOKIE NOTIFICATION CONTAINER */
/* ====================================== */

.cookies--notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pure-white);
    border-top: 3px solid var(--primary-black);
    box-shadow: 
        0 -8px 32px var(--black-alpha-20),
        0 -4px 16px var(--black-alpha-10);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform var(--transition-normal) ease-in-out;
    backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

.cookies--notification.cookies--show {
    transform: translateY(0);
}

.cookies--notification.cookies--hide {
    transform: translateY(100%);
}

/* ====================================== */
/* NOTIFICATION VARIANTS */
/* ====================================== */

/* Full Size - For undecided users */
.cookies--notification.cookies--full {
    padding: 10px 0;
}

/* Compact Size - For rejected users */
.cookies--notification.cookies--compact {
    padding: 15px 0;
    border-top-width: 2px;
}

/* ====================================== */
/* NOTIFICATION CONTENT */
/* ====================================== */

.cookies--container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.cookies--content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cookies--compact .cookies--content {
    gap: 20px;
}

.cookies--icon {
    width: 60px;
    height: 60px;
    background: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.cookies--compact .cookies--icon {
    width: 40px;
    height: 40px;
}

.cookies--icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--white-alpha-20) 0%, transparent 70%);
    animation: cookiesPulse 3s ease-in-out infinite;
}

@keyframes cookiesPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
}

.cookies--icon i {
    color: var(--pure-white);
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.cookies--compact .cookies--icon i {
    font-size: 1.2rem;
}

/* ====================================== */
/* TEXT CONTENT */
/* ====================================== */

.cookies--text-content {
    flex: 1;
    min-width: 0;
}

.cookies--title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cookies--compact .cookies--title {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
}

.cookies--description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookies--compact .cookies--description {
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookies--link {
    color: var(--primary-black);
    text-decoration: underline;
    font-weight: 600;
    transition: all var(--transition-fast) ease;
}

.cookies--link:hover {
    color: var(--dark-gray);
    text-decoration: none;
}

/* ====================================== */
/* BUTTON CONTAINER */
/* ====================================== */

.cookies--buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookies--compact .cookies--buttons {
    gap: 8px;
}

/* ====================================== */
/* BUTTONS */
/* ====================================== */

.cookies--button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding:10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.cookies--compact .cookies--button {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: 100px;
}

.cookies--button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--white-alpha-20);
    transition: all var(--transition-normal) ease;
    transform: translate(-50%, -50%);
}

.cookies--button:hover::before {
    width: 300px;
    height: 300px;
}

.cookies--button i,
.cookies--button span {
    position: relative;
    z-index: 2;
}

/* Accept Button */
.cookies--accept {
    background: var(--primary-black);
    color: var(--pure-white);
}

.cookies--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--black-alpha-20);
}

.cookies--accept:active {
    transform: translateY(0);
}

/* Reject Button */
.cookies--reject {
    border: 2px solid var(--border-alpha-60);
}

.cookies--reject::before {
    background: var(--black-alpha-05);
}

.cookies--reject:hover {
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--black-alpha-10);
}

.cookies--reject:active {
    transform: translateY(0);
}

/* Settings Button */
.cookies--settings {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-alpha-40);
    padding: 12px 20px;
    min-width: auto;
}

.cookies--compact .cookies--settings {
    padding: 8px 16px;
}

.cookies--settings::before {
    background: var(--black-alpha-03);
}

.cookies--settings:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* ====================================== */
/* CLOSE BUTTON */
/* ====================================== */

.cookies--close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast) ease;
    opacity: 0;
    visibility: hidden;
}

.cookies--notification.cookies--accepted .cookies--close {
    opacity: 1;
    visibility: visible;
}

.cookies--close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.cookies--close:active {
    transform: scale(0.95);
}

.cookies--close i {
    font-size: 0.9rem;
}

/* ====================================== */
/* PROGRESS BAR */
/* ====================================== */

.cookies--progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-black);
    width: 0%;
    transition: width var(--transition-slow) ease;
}

.cookies--notification.cookies--show .cookies--progress {
    width: 100%;
    transition-delay: 0.3s;
}

/* ====================================== */
/* ANIMATIONS */
/* ====================================== */

@keyframes cookiesSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cookiesSlideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes cookiesButtonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--black-alpha-20);
    }
    50% {
        box-shadow: 0 0 0 10px transparent;
    }
}

.cookies--accept {
    animation: cookiesButtonPulse 2s infinite;
}

/* ====================================== */
/* RESPONSIVE DESIGN */
/* ====================================== */

@media (max-width: 768px) {
    .cookies--notification {
        border-top-width: 2px;
    }
    
    .cookies--container {
        padding: 0 15px;
    }
    
    .cookies--content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookies--compact .cookies--content {
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }
    
    .cookies--buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookies--compact .cookies--buttons {
        flex-direction: row;
        width: auto;
    }
    
    .cookies--button {
        width: 100%;
    }
    
    .cookies--compact .cookies--button {
        width: auto;
    }
    
    .cookies--title {
        font-size: 1.2rem;
    }
    
    .cookies--description {
        font-size: 0.9rem;
    }
    
    .cookies--close {
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .cookies--notification.cookies--full {
        padding: 20px 0;
    }
    
    .cookies--notification.cookies--compact {
        padding: 12px 0;
    }
    
    .cookies--container {
        padding: 0 10px;
    }
    
    .cookies--content {
        gap: 15px;
    }
    
    .cookies--icon {
        width: 50px;
        height: 50px;
    }
    
    .cookies--icon i {
        font-size: 1.5rem;
    }
    
    .cookies--title {
        font-size: 1.1rem;
    }
    
    .cookies--description {
        font-size: 0.85rem;
    }
    
    .cookies--button {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* ====================================== */
/* ACCESSIBILITY */
/* ====================================== */

@media (prefers-reduced-motion: reduce) {
    .cookies--notification,
    .cookies--button,
    .cookies--close,
    .cookies--progress,
    .cookies--icon::before {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.cookies--button:focus,
.cookies--close:focus,
.cookies--link:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookies--notification {
        border-top-width: 4px;
        border-color: var(--primary-black);
    }
    
    .cookies--button {
        border-width: 2px;
    }
}

/* ====================================== */
/* LOADING STATES */
/* ====================================== */

.cookies--button.cookies--loading {
    pointer-events: none;
    opacity: 0.7;
}

.cookies--button.cookies--loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ====================================== */
/* SUCCESS/ERROR STATES */
/* ====================================== */

.cookies--notification.cookies--success {
    border-top-color: var(--success-green);
}

.cookies--notification.cookies--success .cookies--icon {
    background: var(--success-green);
}

.cookies--notification.cookies--error {
    border-top-color: var(--error-red);
}

.cookies--notification.cookies--error .cookies--icon {
    background: var(--error-red);
}