/* ==========================================================================
   WeCatchAI Exclusive Website Review Bounty - Component Styles
   Supports both Default (Dark) and Light Mode (body.light-homepage)
   ========================================================================== */

/* Task Card in Submissions Feed */
.exclusive-task-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 0 auto 24px;
    padding: 24px 32px;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(139, 92, 246, 0.15)) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exclusive-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.light-homepage .exclusive-task-card {
    background: linear-gradient(135deg, #fffbeb 0%, #f5f3ff 100%) !important;
    border: 1px solid #fde68a !important;
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.1) !important;
}

.exclusive-task-card .exclusive-task-badge {
    position: absolute;
    top: -11px;
    left: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
}

.exclusive-task-card .bounty-points-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: 20px;
}

body.light-homepage .exclusive-task-card .bounty-points-badge {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

.btn-bounty-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-bounty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
    filter: brightness(1.1);
}

.btn-bounty-submitted {
    background: #10b981 !important;
    cursor: default;
    box-shadow: none !important;
}

/* ==========================================================================
   Review Modal Overlay & Window
   ========================================================================== */
.website-review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 11, 22, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    padding: 20px 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.website-review-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.website-review-modal-content {
    background: #131728;
    color: #f1f5f9;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.12);
    overflow: hidden;
    position: relative;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s ease;
}

.website-review-modal-overlay.active .website-review-modal-content {
    transform: scale(1) translateY(0);
}

body.light-homepage .website-review-modal-content {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2), 0 0 30px rgba(245, 158, 11, 0.1);
}

/* Modal Header */
.website-review-modal-header {
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    flex-shrink: 0;
}

body.light-homepage .website-review-modal-header {
    border-bottom: 1px solid #f1f5f9;
    background: #fafaf9;
}

.website-review-modal-title-wrap h2 {
    margin: 4px 0 2px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

body.light-homepage .website-review-modal-title-wrap h2 {
    color: #0f172a;
}

.website-review-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.website-review-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: scale(1.05);
}

body.light-homepage .website-review-modal-close {
    background: #f1f5f9;
    color: #64748b;
}

body.light-homepage .website-review-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Modal Scrollable Body */
.website-review-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Intro & Instructions Box */
.website-review-intro-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

body.light-homepage .website-review-intro-card {
    background: #fffbeb;
    border-color: #fde68a;
}

.website-review-intro-card p {
    margin: 0 0 12px 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

body.light-homepage .website-review-intro-card p {
    color: #334155;
}

.website-review-bounty-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}

body.light-homepage .website-review-bounty-callout {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.website-review-bounty-callout strong {
    color: #34d399;
    font-size: 0.95rem;
}

body.light-homepage .website-review-bounty-callout strong {
    color: #059669;
}

.website-review-link-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 10px;
    flex-wrap: wrap;
}

body.light-homepage .website-review-link-cta {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.website-review-open-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff !important;
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.website-review-open-link-btn:hover {
    background: #1d4ed8;
}

/* Autosave bar */
.website-review-autosave-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

body.light-homepage .website-review-autosave-bar {
    background: #f1f5f9;
    color: #64748b;
}

.autosave-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
}

.autosave-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Form Sections */
.review-form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.light-homepage .review-form-section {
    border-bottom: 1px solid #f1f5f9;
}

.review-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 16px 0;
}

body.light-homepage .review-form-section-title {
    color: #b45309;
}

.review-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.review-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.review-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
    line-height: 1.4;
}

body.light-homepage .review-form-group label {
    color: #1e293b;
}

.review-form-group .form-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 4px;
}

body.light-homepage .review-form-group .form-hint {
    color: #64748b;
}

.review-form-group input,
.review-form-group select,
.review-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

body.light-homepage .review-form-group input,
body.light-homepage .review-form-group select,
body.light-homepage .review-form-group textarea {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.review-form-group input:focus,
.review-form-group select:focus,
.review-form-group textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.review-form-group textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
}

/* Modal Actions Footer */
.website-review-modal-footer {
    padding: 16px 28px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    flex-shrink: 0;
    gap: 16px;
    flex-wrap: wrap;
}

body.light-homepage .website-review-modal-footer {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.btn-clear-draft {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-draft:hover {
    border-color: #ef4444;
    color: #ef4444;
}

body.light-homepage .btn-clear-draft {
    border-color: #cbd5e1;
    color: #64748b;
}

.btn-submit-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.btn-submit-review:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Feedback messages */
.website-review-error-banner {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

body.light-homepage .website-review-error-banner {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Success view */
.website-review-success-panel {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.website-review-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 18px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.website-review-success-panel h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #ffffff;
}

body.light-homepage .website-review-success-panel h3 {
    color: #0f172a;
}

.website-review-success-panel p {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

body.light-homepage .website-review-success-panel p {
    color: #475569;
}

@media (max-width: 640px) {
    .exclusive-task-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .exclusive-task-card .reviewer-card-action {
        width: 100%;
        margin-top: 8px;
    }
    .exclusive-task-card .btn-bounty-action {
        width: 100%;
        justify-content: center;
    }
    .website-review-modal-content {
        max-height: 94vh;
    }
    .website-review-modal-body {
        padding: 16px;
    }
    .website-review-modal-header,
    .website-review-modal-footer {
        padding: 14px 16px;
    }
}
