/* Content Warning System Styles */

/* Warning Badges */
.warning-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 8px;
    font-size: 6px;
    font-weight: bold;
    border-radius: 3px;
    border: 1px solid;
    text-shadow: none;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

/* Rating-specific badge colors */
.rating-18plus {
    background: #ff0000;
    color: #fff;
    border-color: #cc0000;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.rating-rated-r {
    background: #ff4444;
    color: #fff;
    border-color: #cc0000;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.rating-pg13 {
    background: #ff8800;
    color: #fff;
    border-color: #cc6600;
    box-shadow: 0 0 5px rgba(255, 136, 0, 0.5);
}

.rating-l {
    background: #ffaa00;
    color: #000;
    border-color: #cc8800;
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

.rating-v {
    background: #cc0000;
    color: #fff;
    border-color: #990000;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

.rating-lv {
    background: linear-gradient(45deg, #ffaa00, #cc0000);
    color: #fff;
    border-color: #990000;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

/* Pulse animation for badges */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Warning Modal */
.warning-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.warning-modal.show {
    opacity: 1;
}

.warning-modal-content {
    background: #fff;
    border: 4px solid #000;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    font-family: 'Press Start 2P', cursive;
}

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

/* Comic book style speech bubble effect */
.warning-modal-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #000;
}

.warning-modal-content::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid #fff;
}

/* Warning Header */
.warning-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    padding: 20px;
    text-align: center;
    border-radius: 11px 11px 0 0;
    border-bottom: 3px solid #000;
    position: relative;
}

.warning-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    border-radius: 11px 11px 0 0;
}

.warning-icon {
    font-size: 24px;
    margin-bottom: 10px;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.warning-header h2 {
    color: #fff;
    font-size: 14px;
    margin: 0;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 2px;
}

/* Warning Body */
.warning-body {
    padding: 20px;
    text-align: center;
}

.rating-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.warning-reasons {
    margin-bottom: 15px;
}

.reason-tag {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 8px;
    border: 1px solid #555;
}

.warning-message {
    color: #333;
    font-size: 8px;
    line-height: 1.4;
    margin: 0;
    padding: 10px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

/* Warning Actions */
.warning-actions {
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 3px solid #eee;
}

.warning-btn {
    padding: 12px 20px;
    border: 3px solid;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.warning-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.warning-btn:hover::before {
    left: 100%;
}

.cancel-btn {
    background: #666;
    color: #fff;
    border-color: #444;
}

.cancel-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.proceed-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
    border-color: #2c8577;
}

.proceed-btn:hover {
    background: linear-gradient(135deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Items with warnings styling */
.list-item.has-warning {
    border-left: 3px solid #ff6b6b;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1), transparent);
}

.list-item.has-warning:hover {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.2), transparent);
    cursor: pointer;
}

/* Pixel art styling */
.warning-modal-content,
.warning-btn,
.rating-badge,
.reason-tag {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Responsive design */
@media (max-width: 768px) {
    .warning-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .warning-header h2 {
        font-size: 12px;
    }
    
    .warning-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .warning-btn {
        width: 100%;
        font-size: 7px;
    }
    
    .warning-message {
        font-size: 7px;
    }
    
    .warning-badge {
        font-size: 5px;
        padding: 1px 4px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .warning-modal-content {
        background: #222;
        border-color: #555;
        color: #fff;
    }
    
    .warning-message {
        background: #333;
        color: #ccc;
        border-color: #555;
    }
    
    .reason-tag {
        background: #555;
        border-color: #777;
    }
}


/* Comic book style effects */
.comic-warning-bubble {
    position: relative;
    background: #fff;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 4px 4px 0px #000;
}

.comic-warning-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #000;
}

.comic-warning-bubble::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 32px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}
