/* Elodgement Extension — Page Styles */

/* Hero: mini step indicator + progress */
.af-hero-anim { padding: 24px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.af-steps-mini { display: flex; align-items: center; gap: 0; width: 100%; }
.af-sm { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
.af-sm-num { width: 28px; height: 28px; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.af-sm-active .af-sm-num { background: #10b981; color: #fff; box-shadow: 0 2px 10px rgba(16,185,129,0.3); }
.af-sm-label { font-size: 0.6rem; font-weight: 700; color: #94a3b8; }
.af-sm-active .af-sm-label { color: #10b981; }
.af-sm-line { flex: 1; height: 2px; background: #e2e8f0; min-width: 20px; }

.af-progress-bar { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.af-pb-fill { height: 100%; width: 5%; background: linear-gradient(90deg,#10b981,#059669); border-radius: 3px; animation: afPbGrow 3s 0.5s ease-in-out forwards; }
@keyframes afPbGrow { to { width: 45%; } }
.af-progress-text { font-size: 0.7rem; color: #64748b; font-weight: 600; }

/* 3-step row */
.af-steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: flex-start; }
.af-step { text-align: center; }
.af-step-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 auto 12px; }
.af-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #10b981; color: #fff; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; }
.af-step h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--color-text-dark); margin-bottom: 8px; }
.af-step p { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6; }
.af-step-connector { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.8rem; padding-top: 30px; }

/* Smart filling animation */
.af-smart-anim { display: flex; flex-direction: column; gap: 10px; padding: 24px; width: 100%; }
.af-field-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; }
.af-fl { width: 50px; height: 6px; background: #e2e8f0; border-radius: 3px; flex-shrink: 0; }
.af-fv { flex: 1; height: 8px; background: #10b981; border-radius: 4px; opacity: 0.7; }
.af-fv-filling { background: linear-gradient(90deg,#10b981 60%,#e2e8f0 60%); animation: afFilling 2s ease-in-out infinite; }
@keyframes afFilling { 0% { background: linear-gradient(90deg,#10b981 0%,#e2e8f0 0%); } 100% { background: linear-gradient(90deg,#10b981 100%,#e2e8f0 100%); } }
.af-fv-empty { background: #e2e8f0; opacity: 0.5; }
.af-fc { color: #10b981; font-size: 0.85rem; }
.af-fs { color: #f59e0b; font-size: 0.75rem; }
.af-fr1 { animation: afRowIn 0.3s 0.2s ease both; }
.af-fr2 { animation: afRowIn 0.3s 0.4s ease both; }
.af-fr3 { animation: afRowIn 0.3s 0.6s ease both; }
.af-fr4 { animation: afRowIn 0.3s 0.8s ease both; }
@keyframes afRowIn { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
.af-pbar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.af-pbar-fill { height: 100%; width: 30%; background: #10b981; border-radius: 3px; animation: afPbGrow 2.5s ease-in-out forwards; }

/* Resume animation */
.af-resume-anim { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px; width: 100%; }
.af-ra-bar { display: flex; align-items: center; width: 100%; height: 8px; border-radius: 4px; overflow: visible; position: relative; background: #e2e8f0; }
.af-ra-done { height: 100%; width: 55%; background: #10b981; border-radius: 4px 0 0 4px; }
.af-ra-checkpoint { position: absolute; left: 55%; top: -10px; color: #ef4444; font-size: 1rem; transform: translateX(-50%); animation: afCpBounce 1.5s ease-in-out infinite; }
@keyframes afCpBounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(-4px); } }
.af-ra-remaining { flex: 1; }
.af-ra-label { font-size: 0.75rem; font-weight: 700; color: #10b981; }
.af-ra-retry { font-size: 0.72rem; color: #f59e0b; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.af-ra-retry i { animation: afRetrySpin 2s linear infinite; }
@keyframes afRetrySpin { to { transform: rotate(360deg); } }

@media (max-width: 768px) { .af-steps-row { grid-template-columns: 1fr; gap: 24px; } .af-step-connector { display: none; } }
@media (prefers-reduced-motion: reduce) { .af-pb-fill,.af-pbar-fill,.af-ra-checkpoint,.af-ra-retry i,.af-field-row { animation: none !important; opacity: 1; transform: none; } .af-pb-fill,.af-pbar-fill { width: 45%; } }
