/* Copy Protection Banner Styling */

/**
 * Banner Container
 * Fixed position at bottom of screen
 */
.copy-protection-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #F30D11 0%, #E50B10 100%);
    color: white;
    padding: 16px 20px;
    z-index: 9998;
    box-shadow: 0 -4px 12px rgba(243, 13, 17, 0.3);
    animation: slideIn 0.4s ease-in-out forwards;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/**
 * Slide-in animation
 */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/**
 * Slide-out animation
 */
@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/**
 * Banner Content Layout
 */
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
}

/**
 * Banner Text
 */
.banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: white;
    word-wrap: break-word;
}

.banner-text strong {
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    color: #ffffff;
}

/**
 * Dismiss Button
 */
.banner-dismiss-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    padding: 0;
}

.banner-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.banner-dismiss-btn:active {
    transform: scale(0.95);
}

.dismiss-icon {
    display: inline-block;
    line-height: 1;
}

/**
 * Responsive Design
 */
@media (max-width: 768px) {
    .copy-protection-banner {
        padding: 12px 16px;
    }

    .banner-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .banner-text {
        font-size: 13px;
        width: 100%;
    }

    .banner-dismiss-btn {
        align-self: flex-end;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .copy-protection-banner {
        padding: 10px 12px;
    }

    .banner-text {
        font-size: 12px;
        line-height: 1.3;
    }

    .banner-dismiss-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/**
 * Dark mode support
 */
@media (prefers-color-scheme: dark) {
    .copy-protection-banner {
        background: linear-gradient(135deg, #D50A0F 0%, #C50A0E 100%);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
    }

    .banner-dismiss-btn {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .banner-dismiss-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }
}

/**
 * Print hiding
 */
@media print {
    .copy-protection-banner {
        display: none;
    }
}

/**
 * Accessibility improvements
 */
.banner-dismiss-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.banner-dismiss-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/**
 * High contrast mode support
 */
@media (prefers-contrast: more) {
    .copy-protection-banner {
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.8);
    }

    .banner-dismiss-btn {
        border-width: 3px;
    }
}
