/* ==========================================================================
   OriginRealm DMCA Takedown Portal & Copyright Policy Stylesheet
   Routes: /dmca-request, /dmca
   Dark Mode & Light Theme Colocated
   ========================================================================== */

/* ─── DARK THEME (DEFAULT) ─── */
.dmca-ambient-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.dmca-ambient-glow-secondary {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.dmca-request-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
    position: relative;
    z-index: 1;
}

.dmca-policy-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

.dmca-policy-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.dmca-policy-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.dmca-policy-title-gradient {
    background: linear-gradient(135deg, #f87171, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.dmca-policy-lead {
    color: #94a3b8;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.dmca-policy-updated {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

.dmca-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    transition: all 0.25s ease;
}

.dmca-header-card {
    padding: 2rem;
}

.dmca-header-flex {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.dmca-header-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.dmca-header-icon--large {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 20px;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.dmca-header-icon svg {
    width: 32px;
    height: 32px;
}

.dmca-header-icon--large svg {
    width: 40px;
    height: 40px;
}

.dmca-header-content {
    flex: 1;
}

.dmca-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.dmca-header-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0.35rem 0 0 0;
}

.dmca-notice-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    color: #fef3c7;
    font-size: 0.875rem;
    line-height: 1.6;
}

.dmca-notice-title {
    font-weight: 700;
    color: #fde68a;
    margin: 0 0 0.5rem 0;
}

.dmca-notice-text {
    margin: 0 0 0.5rem 0;
    color: rgba(254, 243, 199, 0.9);
}

.dmca-notice-footnote {
    margin: 0;
    color: #f59e0b;
    font-size: 0.75rem;
    line-height: 1.5;
}

.dmca-alert {
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.dmca-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.dmca-alert-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 2px;
    color: inherit;
    flex-shrink: 0;
}

.dmca-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.dmca-alert-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.dmca-alert-desc {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(74, 222, 128, 0.9);
}

.dmca-alert-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.dmca-preview-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dmca-preview-img-wrap {
    width: 60px;
    height: 85px;
    min-width: 60px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dmca-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dmca-preview-info {
    flex: 1;
    min-width: 0;
}

.dmca-preview-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-bottom: 0.35rem;
}

.dmca-preview-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dmca-preview-meta {
    color: #9ca3af;
    font-size: 0.8125rem;
    margin: 0.2rem 0 0 0;
}

.dmca-form-card {
    padding: 2.5rem 2rem;
}

.dmca-policy-card {
    padding: 2.5rem;
}

.dmca-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dmca-card-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.dmca-step-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.dmca-step-badge--indigo {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.dmca-step-badge--red {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.dmca-step-badge--emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.dmca-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.dmca-form-group {
    margin-bottom: 1.75rem;
}

.dmca-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.dmca-req-star {
    color: #ef4444;
}

.dmca-form-input,
.dmca-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.875rem 1.25rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dmca-form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

.dmca-form-input:focus,
.dmca-form-textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.dmca-form-help {
    color: #64748b;
    font-size: 0.75rem;
    margin: 0.4rem 0 0 0;
}

.dmca-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.dmca-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ef4444;
}

.dmca-checkbox-label {
    color: #cbd5e1;
    font-size: 0.8125rem;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.dmca-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
    transition: all 0.2s ease;
}

.dmca-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.5);
}

.dmca-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* ─── LIGHT THEME OVERRIDES ─── */
[data-theme="light"] .dmca-ambient-glow,
[data-theme="light"] .dmca-ambient-glow-secondary {
    opacity: 0.35 !important;
}

[data-theme="light"] .dmca-card {
    background: #f4f7fa !important;
    border-color: #dde3ea !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .dmca-header-card {
    background: #f4f7fa !important;
    border-color: #dde3ea !important;
}

[data-theme="light"] .dmca-header-icon {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.12) !important;
}

[data-theme="light"] .dmca-header-title {
    color: #1e293b !important;
}

[data-theme="light"] .dmca-header-subtitle {
    color: #475569 !important;
}

[data-theme="light"] .dmca-policy-title {
    color: #1e293b !important;
}

[data-theme="light"] .dmca-policy-lead {
    color: #475569 !important;
}

[data-theme="light"] .dmca-policy-updated {
    color: #64748b !important;
}

[data-theme="light"] .dmca-card-title {
    color: #1e293b !important;
}

[data-theme="light"] .dmca-card p,
[data-theme="light"] .dmca-card ul,
[data-theme="light"] .dmca-card li {
    color: #334155 !important;
}

[data-theme="light"] .dmca-notice-box {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

[data-theme="light"] .dmca-notice-title {
    color: #b45309 !important;
}

[data-theme="light"] .dmca-notice-text {
    color: #78350f !important;
}

[data-theme="light"] .dmca-notice-text strong {
    color: #9a3412 !important;
}

[data-theme="light"] .dmca-notice-footnote {
    color: #b45309 !important;
}

[data-theme="light"] .dmca-alert--success {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

[data-theme="light"] .dmca-alert--success .dmca-alert-desc {
    color: #15803d !important;
}

[data-theme="light"] .dmca-alert--error {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

[data-theme="light"] .dmca-preview-card {
    background: #f8fafc !important;
    border-color: #dde3ea !important;
}

[data-theme="light"] .dmca-preview-img-wrap {
    background: #dde3ea !important;
    border-color: #c7cfda !important;
}

[data-theme="light"] .dmca-preview-title {
    color: #1e293b !important;
}

[data-theme="light"] .dmca-preview-meta {
    color: #475569 !important;
}

[data-theme="light"] .dmca-preview-badge {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

[data-theme="light"] .dmca-form-card {
    background: #f4f7fa !important;
    border-color: #dde3ea !important;
}

[data-theme="light"] .dmca-form-label {
    color: #1e293b !important;
}

[data-theme="light"] .dmca-form-input,
[data-theme="light"] .dmca-form-textarea {
    background: #f4f7fa !important;
    border-color: #c7cfda !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .dmca-form-input::placeholder,
[data-theme="light"] .dmca-form-textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .dmca-form-input:focus,
[data-theme="light"] .dmca-form-textarea:focus {
    background: #f4f7fa !important;
    border-color: #ef4444 !important;
    color: #1e293b !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

[data-theme="light"] .dmca-form-help {
    color: #64748b !important;
}

[data-theme="light"] .dmca-checkbox-container {
    background: #f8fafc !important;
    border-color: #dde3ea !important;
}

[data-theme="light"] .dmca-checkbox-label {
    color: #334155 !important;
}

[data-theme="light"] .dmca-step-badge--indigo {
    background: #e0e7ff !important;
    color: #4338ca !important;
}

[data-theme="light"] .dmca-step-badge--red {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

[data-theme="light"] .dmca-step-badge--emerald {
    background: #d1fae5 !important;
    color: #047857 !important;
}

[data-theme="light"] .dmca-submit-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25) !important;
}

[data-theme="light"] .dmca-submit-btn:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35) !important;
}
