/**
 * Cookie Consent Banner Styles
 */

/* Banner Container */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #2c3e50;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.5;
    animation: cc-slide-up 0.3s ease-in-out;
}

@keyframes cc-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Banner Content Wrapper */
.cc-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    max-width: 1400px;
    margin: 0 auto;
    color: #ffffff;
}

/* Banner Text Section */
.cc-banner-text {
    flex: 1;
    min-width: 0;
}

.cc-banner-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.cc-banner-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
}

/* Banner Actions */
.cc-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    white-space: nowrap;
}

/* Buttons */
.cc-button {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}

.cc-button:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.02);
}

.cc-button:active:not(:disabled) {
    transform: scale(0.98);
}

.cc-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cc-button-primary {
    background-color: #27ae60;
    color: #ffffff;
    min-width: 120px;
}

.cc-button-close {
    background-color: transparent;
    color: inherit;
    padding: 8px 12px;
    font-size: 24px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cc-button-close:hover {
    opacity: 0.7;
}

/* Banner Footer */
.cc-banner-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
    text-align: center;
    font-size: 12px;
}

.cc-banner-footer a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
}

.cc-banner-footer a:hover {
    opacity: 1;
}

/* Tablet Styles */
@media (max-width: 768px) {
    .cc-banner-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        text-align: center;
    }

    .cc-banner-text {
        width: 100%;
    }

    .cc-banner-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .cc-banner-message {
        font-size: 13px;
    }

    .cc-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cc-button-primary {
        flex: 1;
        min-width: 100px;
        max-width: 200px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .cc-banner {
        font-size: 13px;
    }

    .cc-banner-content {
        padding: 12px;
        gap: 8px;
    }

    .cc-banner-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .cc-banner-message {
        font-size: 12px;
        line-height: 1.4;
    }

    .cc-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cc-button-primary {
        min-width: 90px;
    }

    .cc-button-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .cc-banner-actions {
        gap: 8px;
    }
}

/* Accessibility */
.cc-button:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.cc-button-close:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: -2px;
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .cc-banner-message {
        opacity: 1;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cc-banner {
        animation: none;
    }

    .cc-button {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Inherits from settings, but can add dark mode specific tweaks here */
}

/* Print Styles */
@media print {
    .cc-banner {
        display: none !important;
    }
}
