/**
 * Cookie Consent Banner Styles
 * Professional, GDPR-compliant design
 */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(11, 15, 12, 0.98); /* mistrz-graphite with opacity */
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Content Layout */
.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* Text */
.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cookie-consent-description {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-link {
    color: #CCFF33; /* mistrz-lime */
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-link:hover {
    color: #D7FF4D; /* lighter lime */
}

/* Actions */
.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
    white-space: nowrap;
}

.cookie-btn:focus-visible {
    outline: 2px solid #CCFF33;
    outline-offset: 2px;
}

.cookie-btn-accept {
    background: #CCFF33;
    color: #050505;
}

.cookie-btn-accept:hover {
    background: #D7FF4D;
    box-shadow: 0 0 20px rgba(204, 255, 51, 0.3);
    transform: translateY(-1px);
}

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

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

.cookie-btn-settings {
    background: transparent;
    color: #9CA3AF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-settings:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Toast Notification */
.cookie-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(11, 15, 12, 0.95);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(204, 255, 51, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-size: 0.875rem;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s ease-out;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.cookie-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .cookie-consent-banner {
        padding: 12px;
    }

    .cookie-consent-content {
        gap: 12px;
    }

    .cookie-consent-title {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .cookie-consent-description {
        font-size: 0.8125rem;
    }

    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }
}

/* Print */
@media print {
    .cookie-consent-banner,
    .cookie-toast {
        display: none !important;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000000;
        border-top: 2px solid #ffffff;
    }

    .cookie-btn-accept {
        background: #FFFF00;
        color: #000000;
    }

    .cookie-btn-decline,
    .cookie-btn-settings {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }

    .cookie-btn {
        transition: none;
    }

    .cookie-toast {
        transition: none;
    }
}
