/* EasyPressPro v2 — Design System
   Modern, clean, fast. Light + dark. One system for the whole suite. */

:root {
  /* Brand */
  --brand:        #4f46e5;   /* indigo */
  --brand-600:    #4338ca;
  --brand-50:     #eef2ff;
  --accent:       #06b6d4;   /* cyan */
  --success:      #16a34a;
  --danger:       #dc2626;
  --warn:         #d97706;

  /* Neutrals (light) */
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;

  /* Shape */
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg:    0 12px 40px rgba(15,23,42,.12);
  --ring:         0 0 0 3px rgba(79,70,229,.25);

  --maxw:         1180px;
  --font:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b1020;
    --surface:   #121a2e;
    --surface-2: #0f1626;
    --border:    #23304d;
    --text:      #e8edf7;
    --text-2:    #a7b4cc;
    --text-3:    #6b7a99;
    --brand-50:  #1a2140;
    --shadow:    0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1,h2,h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand-logo .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 900;
}
.brand-logo .brand-img {
  width: 32px; height: 32px; border-radius: 8px;
  display: block; object-fit: contain;
}
.brand-logo .brand-wm { height: 21px; width: auto; display: block; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.lang-select {
  font-family: inherit; font-size: .9rem; color: var(--text-2); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 8px; max-width: 148px;
}
.lang-select:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.lang-select:focus { outline: none; box-shadow: var(--ring); }
/* RTL: flip the sticky header layout so the logo sits on the right. */
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 18px;
  font-weight: 600; font-size: .95rem; font-family: inherit; transition: .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* ---------- Pro badge ---------- */
.pro-pill {
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--warn), #f59e0b); color: #fff;
  padding: 2px 7px; border-radius: 6px; vertical-align: middle;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; text-align: center; }
.hero-logo {
  height: clamp(180px, 26vw, 260px); width: auto; margin: 0 auto 20px; display: block;
  filter: drop-shadow(0 20px 34px rgba(79, 70, 229, .28)) drop-shadow(0 4px 10px rgba(0, 0, 0, .16));
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.hero p.sub { font-size: 1.2rem; color: var(--text-2); max-width: 640px; margin: 0 auto 28px; }
.hero .search { max-width: 560px; margin: 0 auto; position: relative; }
.hero .search input {
  width: 100%; padding: 16px 18px; font-size: 1.05rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.hero .search input:focus { outline: none; box-shadow: var(--ring); border-color: var(--brand); }

/* ---------- Tool grid ---------- */
.section-title { font-size: 1.4rem; font-weight: 700; margin: 40px 0 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: .18s; position: relative; overflow: hidden;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); text-decoration: none; }
.tool-card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 1.35rem; margin-bottom: 12px;
}
.tool-card h3 { font-size: 1.02rem; margin: 0 0 4px; color: var(--text); }
.tool-card p { font-size: .87rem; color: var(--text-2); margin: 0; }
.tool-card .pro-pill { position: absolute; top: 14px; right: 14px; }

/* ---------- Tool workspace (individual tool page) ---------- */
.workspace { padding: 32px 0 60px; }
.workspace h1 { font-size: 2rem; }
.workspace .lead { color: var(--text-2); font-size: 1.08rem; margin-bottom: 24px; max-width: 720px; }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 48px 24px; text-align: center; transition: .18s; cursor: pointer;
}
.dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone .dz-ico { font-size: 2.6rem; margin-bottom: 10px; }
.dropzone h3 { margin: 0 0 6px; }
.dropzone p { color: var(--text-2); margin: 0; }

.file-list { margin: 20px 0; display: grid; gap: 10px; }
.file-row {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
}
.file-row .fname { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fsize { color: var(--text-3); font-size: .85rem; }
.file-row .fx { cursor: pointer; color: var(--text-3); padding: 4px; }
.file-row .fx:hover { color: var(--danger); }
.file-row .handle { cursor: grab; color: var(--text-3); }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 16px 0; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .2s; }

.result {
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--success) 35%, var(--border));
  border-radius: var(--radius); padding: 24px; text-align: center;
}

/* ---------- Ad slot ---------- */
.ad-slot {
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  min-height: 90px; display: grid; place-items: center; color: var(--text-3);
  font-size: .8rem; margin: 24px 0;
}
.ad-slot[data-hidden="true"] { display: none; }

/* ---------- Limit / upsell banner ---------- */
.upsell {
  background: linear-gradient(135deg, var(--brand-50), transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: var(--radius); padding: 20px 24px; margin: 20px 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.upsell .txt { flex: 1; min-width: 220px; }
.upsell h4 { margin: 0 0 3px; }
.upsell p { margin: 0; color: var(--text-2); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0; background: var(--surface); }
.footer-cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 30px; }
.footer-cols h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 0 0 12px; }
.footer-cols a { display: block; color: var(--text-2); padding: 4px 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 20px; color: var(--text-3); font-size: .85rem; text-align: center; }

.utility { display: flex; gap: 10px; align-items: center; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 32px; }
}
