/* =========================================================
   estilos.css — PixelForge Editor de Imágenes
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BODY ─────────────────────────────────────────────── */
body {
    font-family: 'Syne', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    transition: background 0.35s ease, color 0.35s ease;
    overflow-x: hidden;
}

/* ── WELCOME MODAL ────────────────────────────────────── */
.welcome-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}
.welcome-glow {
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.welcome-inner {
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-muted);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.welcome-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.welcome-avatar {
    position: relative;
    width: 100px; height: 100px;
}
.avatar-placeholder {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}
.avatar-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: spin 8s linear infinite;
}
.ring-2 {
    inset: -16px;
    border-color: var(--secondary);
    opacity: 0.2;
    animation-duration: 12s;
    animation-direction: reverse;
}
.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.welcome-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.developer-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.dev-name { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.dev-name span { color: var(--primary); font-weight: 700; }
.dev-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.tech-stack {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.tech-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
}
.tech-pill i { color: var(--primary); }
.tech-pill:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-enter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-enter:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,0.5); }

/* ── NAVBAR ───────────────────────────────────────────── */
.app-navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.35s;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 400;
}
.brand-logo strong { font-weight: 800; }
.brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}
.nav-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted) !important;
    border-radius: 8px;
    padding: 8px 14px !important;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-pill:hover, .nav-pill.active {
    background: var(--primary-muted);
    color: var(--primary) !important;
}
.btn-theme-toggle {
    width: 38px; height: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-theme-toggle:hover {
    background: var(--primary-muted);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── SECTIONS ─────────────────────────────────────────── */
.app-section { display: none; }
.app-section.active-section { display: block; }

/* ── HERO ─────────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-muted);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
}
.hero-badge i { font-size: 0.7rem; }
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin: 1rem 0;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.btn-primary-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,0.45); }
.btn-ghost-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 28px;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-ghost-hero:hover { border-color: var(--primary); color: var(--primary); }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-canvas {
    width: 320px; height: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
}
.canvas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 2rem;
    width: 100%;
}
.canvas-pixel {
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.15;
    animation: pixelPulse 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
.canvas-label {
    position: absolute;
    bottom: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}
.canvas-label i { color: var(--primary); }
.floating-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}
.floating-card i { color: var(--primary); }
.card-1 { top: 20%; right: -40px; animation: float 4s ease-in-out infinite; }
.card-2 { top: 55%; left: -50px; animation: float 4s ease-in-out infinite 1s; }
.card-3 { bottom: 15%; right: -30px; animation: float 4s ease-in-out infinite 2s; }

/* ── EDITOR GRID ──────────────────────────────────────── */
.editor-grid {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 12px;
    min-height: calc(100vh - 130px);
}
@media (max-width: 1100px) { .editor-grid { grid-template-columns: 1fr; } }

.editor-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}
.panel-header i { color: var(--primary); }

/* Drop Zone */
.drop-zone {
    margin: 1rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--surface);
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-muted);
}
.drop-icon { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; display: block; }
.drop-title { font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.25rem; }
.drop-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.drop-formats {
    font-size: 0.7rem;
    font-family: 'DM Mono', monospace;
    color: var(--primary);
    background: var(--primary-muted);
    border: 1px solid var(--primary-border);
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
    font-weight: 500;
}

/* File Info */
.file-info-card {
    margin: 0 1rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--primary-muted);
    border-bottom: 1px solid var(--primary-border);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.info-label i { color: var(--primary); font-size: 0.7rem; }
.info-value {
    font-size: 0.78rem;
    color: var(--text-main);
    font-family: 'DM Mono', monospace;
    text-align: right;
    word-break: break-all;
    max-width: 140px;
}

/* Comparison Toggle */
.comparison-toggle {
    margin: 0 1rem 1rem;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    user-select: none;
}
.toggle-label input { display: none; }
.toggle-slider {
    width: 40px; height: 22px;
    background: var(--border);
    border-radius: 11px;
    position: relative;
    transition: all 0.25s;
    flex-shrink: 0;
}
.toggle-slider::after {
    content: '';
    width: 16px; height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px; left: 3px;
    transition: transform 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-label input:checked ~ .toggle-slider { background: var(--primary); }
.toggle-label input:checked ~ .toggle-slider::after { transform: translateX(18px); }

/* Preview */
.panel-center { flex: 1; }
.preview-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 400px;
    overflow: hidden;
}
.preview-placeholder { text-align: center; color: var(--text-muted); }
.placeholder-icon { font-size: 3.5rem; color: var(--border); margin-bottom: 1rem; }
.preview-placeholder p { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.25rem; }
.preview-placeholder span { font-size: 0.78rem; font-family: 'DM Mono', monospace; color: var(--primary); }
.preview-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
}
.status-dot { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; }
.status-dot.active { background: #22c55e; animation: pulse 2s infinite; }
.single-preview { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.preview-img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
}

/* Compare */
.compare-wrapper { display: flex; gap: 8px; width: 100%; height: 100%; align-items: stretch; }
.compare-side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.compare-side img { max-width: 100%; max-height: 450px; border-radius: 10px; object-fit: contain; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.compare-label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-muted);
    border: 1px solid var(--primary-border);
    border-radius: 6px; padding: 4px 10px;
}
.compare-divider { width: 2px; background: var(--border); border-radius: 1px; align-self: stretch; margin: 8px 0; }

/* Loader */
.loader-overlay {
    position: absolute; inset: 0;
    background: rgba(var(--bg-rgb), 0.85);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    border-radius: 16px; z-index: 10;
}
.loader-content { text-align: center; }
.loader-ring {
    width: 52px; height: 52px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 1rem;
}
.loader-content p { font-size: 0.85rem; color: var(--text-muted); font-family: 'DM Mono', monospace; }

/* ── TOOLS PANEL ──────────────────────────────────────── */
.tools-section { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tools-hint {
    font-size: 0.82rem; color: var(--text-muted);
    text-align: center; padding: 1.5rem 1rem;
    background: var(--surface); border: 1px dashed var(--border); border-radius: 10px;
}
.effect-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.effect-group { display: flex; flex-direction: column; gap: 8px; }
.tool-btn {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
    cursor: pointer; transition: all 0.2s;
    text-align: left; width: 100%; color: var(--text-main);
}
.tool-btn:hover { border-color: var(--primary); background: var(--primary-muted); transform: translateX(3px); }
.tool-btn:active { transform: translateX(1px) scale(0.99); }
.tool-btn-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem; flex-shrink: 0;
}
.negative-icon { background: linear-gradient(135deg, #0f172a, #1e293b); }
.tool-btn-info { display: flex; flex-direction: column; gap: 2px; }
.tool-name { font-size: 0.875rem; font-weight: 700; color: var(--text-main); }
.tool-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Brightness */
.brightness-group { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.brightness-control { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.brightness-display {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
}
.brightness-icon { color: var(--primary); font-size: 1rem; }
.brightness-value { font-family: 'DM Mono', monospace; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.brightness-slider {
    -webkit-appearance: none;
    width: 100%; height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, #3b82f6 50%, var(--border) 50%);
    outline: none; cursor: pointer; transition: background 0.1s;
}
.brightness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 8px rgba(99,102,241,0.4);
    transition: transform 0.15s;
}
.brightness-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider-labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); font-family: 'DM Mono', monospace; }
.btn-apply {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border: none; border-radius: 10px; padding: 11px 18px;
    font-family: 'Syne', sans-serif; font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.45); }
.btn-reset {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 10px; padding: 10px;
    font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; width: 100%;
}
.btn-reset:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.06); }

/* ── SAVE PANEL ───────────────────────────────────────── */
.save-panel {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 16px; margin-top: 12px;
}
.save-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; gap: 16px; flex-wrap: wrap;
}
.save-info { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600; color: #22c55e; }
.save-info i { font-size: 1.1rem; }
.save-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-save {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white; border: none; border-radius: 10px; padding: 11px 20px;
    font-family: 'Syne', sans-serif; font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.45); }
.btn-save-orig {
    display: flex; align-items: center; gap: 8px;
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 10px; padding: 11px 20px;
    font-family: 'Syne', sans-serif; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn-save-orig:hover { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,0.06); }

/* ── INFO SECTION ─────────────────────────────────────── */
.section-title-wrap { text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--text-main); }
.section-sub { color: var(--text-muted); font-size: 1rem; margin-top: 0.5rem; }
.info-feature-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 18px; padding: 1.75rem; height: 100%; transition: all 0.3s;
}
.info-feature-card:hover { border-color: var(--primary-border); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(99,102,241,0.12); }
.feat-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem; margin-bottom: 1.25rem;
}
.info-feature-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text-main); }
.info-feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-tags span {
    background: var(--primary-muted); color: var(--primary);
    border: 1px solid var(--primary-border); border-radius: 6px;
    padding: 3px 10px; font-size: 0.75rem; font-weight: 600; font-family: 'DM Mono', monospace;
}
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tech-list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-main); }
.tech-list i { color: #22c55e; }

/* ── DEVELOPER PROFILE ────────────────────────────────── */
.developer-profile { max-width: 640px; margin: 0 auto; text-align: center; }
.dev-profile-avatar { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.dev-big-avatar {
    width: 120px; height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: white; position: relative; z-index: 2;
}
.dev-profile-ring {
    position: absolute; inset: -12px;
    border: 2px solid var(--primary); border-radius: 50%;
    opacity: 0.3; animation: spin 10s linear infinite;
}
.dev-profile-name { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.25rem; }
.dev-profile-role { color: var(--primary); font-weight: 600; margin-bottom: 1.25rem; }
.dev-profile-bio {
    color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; margin-bottom: 1.5rem;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
}
.dev-profile-skills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 2rem; }
.dev-profile-skills span {
    background: var(--primary-muted); color: var(--primary);
    border: 1px solid var(--primary-border); border-radius: 8px;
    padding: 6px 14px; font-size: 0.8rem; font-weight: 600;
}
.dev-profile-stats {
    display: flex; justify-content: center; gap: 2rem;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.25rem;
}
.profile-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.profile-stat span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ── TOAST ────────────────────────────────────────────── */
.pf-toast {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 18px; display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
    min-width: 280px; max-width: 380px;
}
.pf-toast.success { border-color: rgba(34,197,94,0.4); }
.pf-toast.success i { color: #22c55e; }
.pf-toast.error { border-color: rgba(239,68,68,0.4); }
.pf-toast.error i { color: #ef4444; }
.pf-toast.info { border-color: rgba(99,102,241,0.4); }
.pf-toast.info i { color: var(--primary); }
.pf-toast span { flex: 1; color: var(--text-main); }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; }

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pixelPulse { 0%, 100% { opacity: 0.1; transform: scale(0.9); } 50% { opacity: 0.35; transform: scale(1); } }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .editor-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .save-inner { flex-direction: column; align-items: flex-start; }
    .floating-card { display: none; }
}