/* EXIF Eraser — Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ─── Header ─── */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 32px 0 24px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.subtitle {
    color: #a0aec0;
    font-size: 1rem;
}

/* ─── Main ─── */
main {
    flex: 1;
    padding: 32px 0;
}

/* ─── Drop Zone ─── */
.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #3b82f6;
    background: #eff6ff;
}

.drop-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.drop-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.drop-sub {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}

.upload-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.access-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
}

/* ─── Result ─── */
.result-card, .error-card, .loading-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.result-badge.success { background: #dcfce7; color: #166534; }
.result-badge.error { background: #fef2f2; color: #991b1b; }

.result-details {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.result-previews {
    margin: 20px 0;
}

.preview-box h3 {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
}

.preview-box img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ─── Loading ─── */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Error ─── */
.error-upgrade {
    margin: 20px 0;
    padding: 16px;
    background: #fef9c3;
    border-radius: 12px;
}

.error-upgrade p {
    margin-bottom: 8px;
}

/* ─── Premium Section ─── */
#premium-section {
    margin-top: 48px;
    text-align: center;
}

#premium-section h2 {
    margin-bottom: 20px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a2e;
}

.pricing-period {
    color: #64748b;
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding: 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #334155;
}

/* ─── How it Works ─── */
.how-it-works {
    margin-top: 48px;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 24px;
}

.steps {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    background: white;
    border-radius: 12px;
    padding: 24px;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.step-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.step h3 { margin-bottom: 4px; font-size: 1rem; }
.step p { color: #64748b; font-size: 0.85rem; }

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    margin: 4px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}
.btn-primary:hover { background: #2563eb; }

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}
.btn-secondary:hover { background: #cbd5e1; }

.btn-premium {
    background: #059669;
    color: white;
    width: 100%;
    margin-top: 12px;
}
.btn-premium:hover { background: #047857; }

.btn-small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* ─── Cookie Banner ─── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: white;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 999;
}

.cookie-banner p { font-size: 0.85rem; }
.cookie-banner a { color: #93c5fd; }

.hidden { display: none !important; }

/* ─── Footer ─── */
footer {
    background: #1a1a2e;
    color: #94a3b8;
    padding: 24px 0;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: white; }

.footer-copy { font-size: 0.8rem; }

/* ─── Legal Pages ─── */
.legal-page header { padding: 20px 0; }
.legal-page header h1 { font-size: 1.3rem; }
.legal-content { padding: 32px 0; }
.legal-content h2 { margin-bottom: 16px; }
.legal-content h3 { margin-top: 24px; margin-bottom: 8px; color: #334155; }
.legal-content p, .legal-content li { color: #475569; line-height: 1.6; margin-bottom: 8px; }
.legal-content ul { padding-left: 20px; }

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.legal-content th, .legal-content td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    font-size: 0.9rem;
}
.legal-content th { background: #f8fafc; font-weight: 600; }

.no-underline { text-decoration: none; color: inherit; }

/* ─── Mobile ─── */
@media (max-width: 600px) {
    .drop-zone { padding: 32px 16px; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; }
    .upload-info { flex-direction: column; align-items: center; }
}

/* ─── Auth Section ──────────────────────────────────── */
.auth-section {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
}

.auth-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-switch {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    text-decoration: underline;
}

.auth-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
}

.auth-minimized {
    max-width: 300px;
    margin: 0 auto 1rem;
    font-size: 0.9rem;
}

#login-status {
    margin-top: 0.5rem;
    color: #dc2626;
    font-size: 0.9rem;
}

#auth-logged-in {
    padding: 1.5rem;
}

#auth-logged-in h2 {
    font-size: 1.1rem;
    word-break: break-all;
}

.subscription-container {
    margin-top: 1rem;
}
