/* Adult Content Modal Styles - Adapted from Auth Modal & Preference Banner */

/* Modal Content - Base */
#adultContentModal .modal-content {
    background: #000000 !important; /* Force pure black */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(220, 53, 69, 0.6); /* Red border for danger/warning */
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.15), 0 0 0 1px #000; /* Red glow */
    overflow: hidden;
}

/* Header Adjustments */
#adultContentModal .modal-header {
    border-bottom: none;
    padding: 20px 24px 0;
    z-index: 2;
}

#adultContentModal .btn-close {
    opacity: 0.5;
    filter: invert(1) brightness(200%); /* White close button */
    transition: transform 0.2s ease, opacity 0.2s;
}

#adultContentModal .btn-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

/* Body Adjustments */
#adultContentModal .modal-body {
    padding: 10px 32px 32px;
    position: relative;
    z-index: 1;
}

/* Badge Style */
.adult-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    margin-right: 12px;
}

/* Typography */
.adult-title {
    color: #f8fafc; /* Slate-50 */
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.025em;
    display: inline-block;
    vertical-align: middle;
}

.adult-description {
    color: #94a3b8; /* Slate-400 */
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Danger Card */
.danger-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.danger-card:hover {
    border-color: rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.05);
}

.danger-icon {
    font-size: 2rem;
    color: #ef4444;
    margin-right: 20px;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
}

.danger-content {
    flex-grow: 1;
}

.danger-label {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.danger-status {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.danger-status.inactive {
    color: #9ca3af;
}

.danger-status.active {
    color: #ef4444;
}

/* Switch Styling */
.form-switch .form-check-input {
    width: 3.5em;
    height: 1.75em;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%239ca3af'/%3e%3c/svg%3e");
    cursor: pointer;
    transition: background-position .15s ease-in-out,background-color .3s;
}

.form-switch .form-check-input:checked {
    background-color: #ef4444; /* Red for +18 */
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

/* Action Button */
.btn-adult-apply {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-adult-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    #adultContentModal .modal-content {
        background: #000000 !important;
        border: 1px solid rgba(220, 53, 69, 0.4);
        box-shadow: none;
        border-radius: 16px;
        margin: 10px;
    }

    #adultContentModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    #adultContentModal .modal-body {
        padding: 24px 20px 24px !important;
    }

    .adult-title {
        font-size: 1.2rem;
        display: block;
        margin-top: 8px;
    }
    
    .adult-badge {
        margin-bottom: 4px;
    }

    .danger-card {
        padding: 16px;
        flex-direction: row; /* Keep row layout */
        align-items: center;
    }

    .danger-icon {
        font-size: 1.5rem;
        margin-right: 15px;
    }

    .btn-adult-apply {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
        min-height: 44px; /* Touch target */
    }
}
