/* Go2AI Project Submission Portal Pro - Frontend Styles */
.go2ai-ps-portal {
    --go2ai-primary: #0030F8;
    --go2ai-accent: #18E070;
    --go2ai-bg: #07102E;
    --go2ai-card: #050A1C;
    --go2ai-text: #FFFFFF;
    --go2ai-muted: #E2E8F0;
    --go2ai-border: rgba(255, 255, 255, 0.1);

    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 100vh;
    padding: 52px 20px 64px;
    background: radial-gradient(ellipse at 50% 16%, #10225C 0%, var(--go2ai-bg) 50%, #030714 100%);
    color: var(--go2ai-text);
    font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}
.go2ai-ps-portal * { box-sizing: border-box; }
.go2ai-ps-portal.go2ai-theme-light {
    --go2ai-bg: #F8FAFC;
    --go2ai-card: #FFFFFF;
    --go2ai-text: #0F172A;
    --go2ai-muted: #475569;
    --go2ai-border: #E2E8F0;
    background: #F8FAFC;
}
.go2ai-ps-inner { max-width: 1160px; margin: 0 auto; }

.go2ai-ps-header { text-align: center; margin-bottom: 34px; }
.go2ai-ps-title { margin: 0 0 8px; font-size: 34px; font-weight: 800; line-height: 1.2; }
.go2ai-ps-subtitle { margin: 0 auto 18px; max-width: 600px; font-size: 14.5px; line-height: 1.5; }
.go2ai-status-trigger-btn {
    background: rgba(24, 224, 112, 0.14);
    color: #18E070 !important;
    border: 1.5px solid rgba(24, 224, 112, 0.5);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.go2ai-status-trigger-btn:hover { background: #18E070; color: #050A1C !important; }

.go2ai-ps-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--go2ai-border);
}
.go2ai-ps-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.go2ai-ps-crumb {
    background: transparent;
    border: 1px solid var(--go2ai-border);
    color: #CBD5E1 !important;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.go2ai-ps-crumb.active { background: var(--go2ai-primary); border-color: var(--go2ai-primary); color: #FFFFFF !important; }

.go2ai-ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.go2ai-ps-card {
    background: var(--go2ai-card);
    border: 1px solid var(--go2ai-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s, border-color 0.2s;
}
.go2ai-ps-card:hover { transform: translateY(-4px); border-color: var(--go2ai-accent); }
.go2ai-ps-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.go2ai-ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.go2ai-ps-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 18px; text-align: center; font-size: 20px; font-weight: 800; color: #FFFFFF;
    background: radial-gradient(circle at top right, rgba(24, 224, 112, 0.35), transparent 55%), linear-gradient(135deg, #071447, #0030F8);
}
.go2ai-ps-num { font-size: 12px; background: var(--go2ai-accent); color: #050A1C; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.go2ai-ps-pill {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(5, 10, 30, 0.88); color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
}
.go2ai-pill-open { color: #18E070; border-color: rgba(24, 224, 112, 0.5); }
.go2ai-pill-closed { color: #F87171; border-color: rgba(248, 113, 113, 0.5); }
.go2ai-ps-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.go2ai-ps-card-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.go2ai-ps-deadline { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; opacity: 0.9; }
.go2ai-ps-card-desc { margin: 0 0 16px; font-size: 13.5px; line-height: 1.45; }

.go2ai-ps-btn {
    margin-top: auto; width: 100%; padding: 12px 16px; border: none; border-radius: 10px;
    background: var(--go2ai-primary) !important; color: #FFFFFF !important; font-size: 14.5px; font-weight: 700;
    cursor: pointer; transition: filter 0.2s, transform 0.15s;
    box-shadow: 0 6px 16px rgba(0, 48, 248, 0.32);
}
.go2ai-ps-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.go2ai-ps-btn-disabled { background: #475569; box-shadow: none; cursor: not-allowed; }
.go2ai-ps-empty { text-align: center; padding: 36px; border: 1px dashed var(--go2ai-border); border-radius: 14px; color: #CBD5E1; }

/* Pagination */
.go2ai-ps-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.go2ai-ps-page-btn {
    min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px;
    border: 1.5px solid var(--go2ai-border); background: var(--go2ai-card); color: #FFFFFF !important;
    font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.go2ai-ps-page-btn.active { background: var(--go2ai-primary); border-color: var(--go2ai-primary); }
.go2ai-ps-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Modal & Multi-File Dropzone */
.go2ai-ps-modal-overlay {
    position: fixed; inset: 0; background: rgba(4, 10, 30, 0.8); backdrop-filter: blur(5px);
    z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
.go2ai-ps-modal {
    position: relative; width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto;
    background: #FFFFFF; color: #0F172A; border-radius: 18px; padding: 26px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.go2ai-ps-modal-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: none;
    border-radius: 50%; background: #F1F5F9; color: #334155; font-size: 22px; cursor: pointer;
}
.go2ai-ps-modal-badge {
    display: inline-block; font-size: 12px; font-weight: 700; color: #0030F8;
    background: #EEF2FF; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px;
}
.go2ai-ps-modal-title { margin: 0 0 16px; font-size: 21px; font-weight: 800; color: #0F172A !important; }
.go2ai-ps-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 520px) { .go2ai-ps-row-2 { grid-template-columns: 1fr; } }
.go2ai-ps-field { margin-bottom: 14px; }
.go2ai-ps-label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.go2ai-ps-input, .go2ai-ps-textarea {
    width: 100%; padding: 10px 13px; font-size: 14px; border: 1.5px solid #CBD5E1;
    border-radius: 9px; outline: none; color: #0F172A; background: #FFFFFF;
}
.go2ai-ps-input:focus, .go2ai-ps-textarea:focus { border-color: #0030F8; }

.go2ai-ps-dropzone {
    border: 2px dashed #94A3B8; border-radius: 12px; padding: 20px 14px; text-align: center;
    background: #F8FAFC; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.go2ai-ps-dropzone.dragover { border-color: #0030F8; background: #EEF2FF; }
.go2ai-ps-drop-icon { font-size: 28px; margin-bottom: 4px; }
.go2ai-ps-drop-text { margin: 0 0 4px; font-size: 14px; color: #1E293B; }
.go2ai-ps-drop-hint { font-size: 12px; color: #64748B; }

.go2ai-ps-file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.go2ai-ps-file-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 12px; background: #F1F5F9; border-radius: 8px; font-size: 13px; color: #0F172A;
}
.go2ai-ps-file-remove {
    border: none; background: #FEE2E2; color: #B91C1C; border-radius: 6px;
    padding: 3px 8px; font-weight: 700; cursor: pointer;
}

.go2ai-ps-progress-wrap { margin: 14px 0; }
.go2ai-ps-progress-bar { height: 10px; background: #E2E8F0; border-radius: 999px; overflow: hidden; }
.go2ai-ps-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #0030F8, #18E070); transition: width 0.25s; }
.go2ai-ps-progress-text { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #0030F8; text-align: center; }

.go2ai-ps-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.go2ai-ps-receipt { text-align: center; padding: 14px 6px; }
.go2ai-ps-receipt-icon { font-size: 42px; margin-bottom: 8px; }
.go2ai-ps-receipt h4 { margin: 0 0 8px; font-size: 20px; color: #065F46; }
.go2ai-ps-receipt p { margin: 0 0 16px; font-size: 14px; color: #334155; line-height: 1.5; }

.go2ai-ps-status-row { display: flex; gap: 8px; margin-bottom: 14px; }
.go2ai-ps-status-results { max-height: 300px; overflow-y: auto; }
.go2ai-ps-status-card { padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 10px; margin-bottom: 8px; font-size: 13px; }

.go2ai-ps-field-hint { font-size: 12.5px; color: #475569; margin-top: 6px; line-height: 1.45; }

#go2aiPsSubmitBtn, .go2ai-ps-modal .go2ai-ps-btn { background: linear-gradient(135deg, #0030F8, #2563EB) !important; color: #FFFFFF !important; border: none !important; opacity: 1 !important; }

/* v3.1.0 Theme-proof button & Thank You receipt polish */
.go2ai-ps-receipt { text-align: center; padding: 18px 8px 8px; }
.go2ai-ps-receipt-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.go2ai-ps-receipt h4 { font-size: 21px; font-weight: 800; color: #0F172A !important; margin: 0 0 12px !important; }
.go2ai-ps-receipt p { font-size: 14.5px; color: #334155 !important; line-height: 1.7; margin: 0 0 20px !important; }
.go2ai-ps-receipt code { background: #EFF6FF; color: #1D4ED8; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
#go2aiPsReceiptDone, #go2aiPsSubmitBtn, .go2ai-ps-modal .go2ai-ps-btn, .go2ai-ps-card .go2ai-ps-btn {
    background: linear-gradient(135deg, #0030F8, #2563EB) !important;
    color: #FFFFFF !important;
    border: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
}
.go2ai-ps-modal-close {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border: none !important;
}
