/* exam-pages.css — shared styles for all exam photo pages */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; background: #f0f7ff; color: #1e293b; }

/* ── Page layout ── */
.exam-page-wrap { max-width: 1100px; margin: 0 auto; padding: 90px 20px 60px; }
@media (max-width: 640px) { .exam-page-wrap { padding-top: 80px; } }

/* ── Breadcrumb ── */
.exam-breadcrumb { font-size: 12px; color: #64748b; margin-bottom: 20px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.exam-breadcrumb a { color: #3b82f6; text-decoration: none; }
.exam-breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ── */
.exam-hero { background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%); border-radius: 20px; padding: 40px 36px 36px; margin-bottom: 28px; }
.exam-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #dbeafe; color: #1e40af; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.exam-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; color: #1e293b; line-height: 1.25; margin-bottom: 12px; }
.exam-hero-intro { color: #475569; font-size: 1rem; line-height: 1.75; max-width: 680px; margin-bottom: 22px; }
.exam-spec-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.exam-spec-pill { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #1e293b; }
.exam-spec-pill svg { color: #3b82f6; flex-shrink: 0; }

/* ── Tool wrapper ── */
.exam-tool-wrap { background: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); margin-bottom: 32px; }
@media (max-width: 640px) { .exam-tool-wrap { padding: 20px 16px; } }

/* ── Upload zone ── */
.tool-upload-zone { border: 2.5px dashed #cbd5e1; border-radius: 16px; padding: 50px 30px; text-align: center; cursor: pointer; transition: all 0.2s; background: #f8fafc; margin-bottom: 16px; }
.tool-upload-zone:hover, .tool-upload-zone.drag-over { border-color: #059669; background: #f0fdf4; }
.tool-upload-zone.has-image { border-style: solid; border-color: #059669; background: #f0fdf4; padding: 24px; }
.tool-upload-icon { width: 56px; height: 56px; color: #059669; margin-bottom: 14px; }
.tool-upload-text { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.tool-upload-hint { font-size: 0.88rem; color: #64748b; }

/* ── Spec bar ── */
.tool-spec-bar { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; background: #f8fafc; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.tool-spec-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #475569; }
.tool-spec-item strong { color: #1e293b; }
.tool-spec-item svg { color: #059669; flex-shrink: 0; }

/* ── Editor ── */
.tool-editor-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-top: 16px; }
@media (max-width: 768px) { .tool-editor-grid { grid-template-columns: 1fr; } }
.tool-crop-wrap { background: #0f172a; border-radius: 16px; overflow: hidden; }
.tool-crop-wrap img { max-width: 100%; display: block; }
.tool-preview-panel { background: #f8fafc; border-radius: 16px; padding: 20px; }
.tool-preview-label { font-weight: 700; font-size: 0.95rem; color: #1e293b; margin-bottom: 12px; }
.tool-preview-box { background: #fff; border-radius: 12px; padding: 16px; text-align: center; border: 1px solid #e2e8f0; margin-bottom: 14px; }
.tool-preview-box img { max-width: 100%; max-height: 180px; border-radius: 6px; }
.tool-zoom-wrap { margin-bottom: 14px; }
.tool-zoom-wrap label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #475569; }
.tool-zoom-wrap input[type=range] { width: 100%; accent-color: #059669; }
.tool-info-panel { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid #e2e8f0; }
.tool-info-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.tool-info-row:last-child { border-bottom: none; }
.tool-info-row span:first-child { color: #64748b; }
.tool-info-row span:last-child { font-weight: 600; color: #1e293b; }
.tool-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; justify-content: center; }
.tool-badge { background: #059669; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }

/* ── Buttons ── */
.tool-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: none; width: 100%; }
.tool-btn--primary { background: #059669; color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,0.25); }
.tool-btn--primary:hover:not(:disabled) { background: #047857; transform: translateY(-1px); }
.tool-btn--primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; }
.tool-btn--outline { background: transparent; border: 2px solid #059669; color: #059669; margin-top: 12px; }
.tool-btn--outline:hover { background: #059669; color: #fff; }
.tool-btn--ghost { background: transparent; border: 1px solid #e2e8f0; color: #64748b; margin-top: 8px; }
.tool-btn--ghost:hover { background: #f8fafc; }

/* ── Results ── */
.tool-results { margin-top: 28px; }
.tool-results h3 { font-size: 1.3rem; font-weight: 800; color: #1e293b; margin-bottom: 20px; text-align: center; }
.tool-results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 16px; }
.tool-result-card { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.result-label { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.result-dim { font-size: 13px; color: #059669; font-weight: 600; margin-bottom: 14px; }
.result-preview { background: #fff; border-radius: 10px; padding: 14px; text-align: center; margin-bottom: 14px; border: 1px solid #e2e8f0; }
.result-preview img { max-width: 100%; max-height: 180px; border-radius: 6px; }
.tool-download-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background: #059669; color: #fff; font-weight: 700; font-size: 0.9rem; border-radius: 10px; text-decoration: none; transition: background 0.2s; margin-top: 10px; }
.tool-download-btn:hover { background: #047857; }
.result-note { font-size: 12px; color: #64748b; text-align: center; margin-top: 8px; }
.acc-badge { background: #059669; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.tool-size-control { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin: 12px 0; }
.tool-size-control label { display: block; font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.tool-size-control input[type=range] { width: 100%; accent-color: #059669; margin-bottom: 6px; }
.size-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; }
.size-hint { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 8px; }
.tool-warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 10px; }
.tool-notice { padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 16px; }
.tool-notice--warn { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.tool-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; border-radius: 8px; padding: 12px 14px; font-size: 13px; }
.tool-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; border-radius: 8px; padding: 12px 14px; font-size: 13px; }

/* ── Ad modal ── */
.tool-ad-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 10000; align-items: center; justify-content: center; }
.tool-ad-modal.active { display: flex; }
.tool-ad-modal-inner { background: #fff; border-radius: 20px; padding: 32px 28px; max-width: 420px; width: 90%; text-align: center; }
.tool-ad-modal-inner h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.tool-ad-label { font-size: 12px; color: #94a3b8; margin-bottom: 14px; }
.tool-ad-slot { background: #f8fafc; border-radius: 10px; padding: 16px; margin-bottom: 16px; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.tool-ad-timer-wrap p { font-size: 1rem; color: #475569; margin-bottom: 12px; }

/* ── Loading ── */
.tool-loading { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.tool-loading p { color: #fff; font-size: 1rem; }
.tool-spinner { width: 52px; height: 52px; border: 4px solid rgba(255,255,255,0.2); border-top-color: #059669; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SEO content sections ── */
.exam-content-section { background: #fff; border-radius: 16px; padding: 36px 32px; margin-bottom: 24px; }
@media (max-width: 640px) { .exam-content-section { padding: 24px 18px; } }
.exam-content-section h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 800; color: #1e293b; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid #3b82f6; }
.exam-content-section h3 { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 20px 0 8px; }
.exam-content-section p { color: #475569; line-height: 1.8; font-size: 0.95rem; margin-bottom: 12px; }
.exam-content-section a { color: #3b82f6; text-decoration: none; }
.exam-content-section a:hover { text-decoration: underline; }

/* ── Spec table ── */
.exam-spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 16px 0 20px; }
.exam-spec-table th { background: #1e293b; color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; }
.exam-spec-table td { padding: 9px 12px; border-bottom: 1px solid #e2e8f0; color: #374151; vertical-align: top; }
.exam-spec-table tr:nth-child(even) td { background: #f8fafc; }
.exam-spec-table tr:last-child td { border-bottom: none; }
.spec-val { font-weight: 700; color: #1e293b; }
.spec-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.spec-badge--warn { background: #fef3c7; color: #92400e; }
.spec-badge--ok   { background: #dcfce7; color: #166534; }

/* ── Steps grid ── */
.exam-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0; }
.exam-step-card { background: #f0f7ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 18px; }
.exam-step-num { width: 28px; height: 28px; background: #1e40af; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.exam-step-card h4 { font-size: 0.88rem; font-weight: 700; color: #1e40af; margin-bottom: 5px; }
.exam-step-card p  { font-size: 0.82rem; color: #475569; line-height: 1.6; }

/* ── FAQ ── */
.exam-faq details { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; background: #fff; }
.exam-faq summary { padding: 14px 16px; font-weight: 600; font-size: 0.92rem; color: #1e293b; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.exam-faq summary::-webkit-details-marker { display: none; }
.exam-faq summary::after { content: '+'; font-size: 1.2rem; color: #3b82f6; font-weight: 400; flex-shrink: 0; }
.exam-faq details[open] summary::after { content: '−'; }
.exam-faq details p { padding: 0 16px 14px; font-size: 0.88rem; color: #475569; line-height: 1.75; }

/* ── Related tools ── */
.exam-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.exam-related-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-decoration: none; display: block; transition: all 0.15s; }
.exam-related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); border-color: #3b82f6; }
.exam-related-icon { font-size: 22px; margin-bottom: 8px; }
.exam-related-card h4 { font-size: 0.87rem; font-weight: 700; color: #1e293b; margin-bottom: 3px; }
.exam-related-card p  { font-size: 0.78rem; color: #64748b; line-height: 1.4; }

/* ── CTA strip ── */
.exam-cta-strip { background: linear-gradient(135deg, #1e40af, #3b82f6); border-radius: 14px; padding: 26px 28px; text-align: center; margin: 28px 0; }
.exam-cta-strip h3 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 7px; }
.exam-cta-strip p  { color: #bfdbfe; font-size: 0.88rem; margin-bottom: 16px; }
.exam-cta-strip a  { background: #fff; color: #1e40af; font-weight: 700; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; display: inline-block; }
.exam-cta-strip a:hover { background: #eff6ff; }

/* ── Ad slots ── */
.ad-container { text-align: center; margin: 28px 0; min-height: 1px; }

/* ── WhatsApp share ── */
.wa-share-btn { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-weight: 700; font-size: 0.88rem; padding: 10px 20px; border-radius: 8px; text-decoration: none; }
.wa-share-btn:hover { background: #1ebe57; }