/*
Theme Name: FirstLocal Creator
Theme URI: https://firstlocal.studio
Author: FirstLocal Studio
Description: Block theme for FirstLocal Studio — offline-first, single-file tools for content creators. Use free in the browser; buy the file once. Self-hosted fonts, no third-party requests, no tracking.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: firstlocal-creator
Tags: block-patterns, full-site-editing, one-column
*/

/* ---------------------------------------------------------------
   Signature component: the File Card.
   The product IS a file — every product is rendered as one.
   --------------------------------------------------------------- */

.flc-file-card {
  background: var(--wp--preset--color--paper);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 25, 30, 0.04), 0 12px 32px -16px rgba(23, 25, 30, 0.18);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.flc-file-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(23, 25, 30, 0.05), 0 20px 44px -18px rgba(23, 25, 30, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .flc-file-card, .flc-file-card:hover { transition: none; transform: none; }
}

/* Title bar of the "file window" */
.flc-file-card__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.flc-file-card__bar::before {
  content: "";
  width: 0.65rem;
  height: 0.8rem;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 16'%3E%3Cpath d='M1 0h7l4 4v11a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm7 1v3h3z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 16'%3E%3Cpath d='M1 0h7l4 4v11a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm7 1v3h3z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.85;
}

.flc-file-card__size {
  margin-left: auto;
  opacity: 0.55;
}

.flc-file-card__body { padding: 1.5rem 1.6rem 1.7rem; }

/* Price line: free-to-use vs own-the-file, always shown together */
.flc-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.82rem;
}

.flc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--wash);
  white-space: nowrap;
}

.flc-chip--own {
  border-color: color-mix(in srgb, var(--wp--preset--color--amber) 55%, var(--wp--preset--color--line));
  background: color-mix(in srgb, var(--wp--preset--color--amber) 14%, var(--wp--preset--color--paper));
}

/* ------------------------------------------------------------- */
/* Hero                                                           */
/* ------------------------------------------------------------- */

.flc-hero-kicker {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}

.flc-hero-title { text-wrap: balance; }

/* Underline flourish on the key word — one place only */
.flc-underline {
  background-image: linear-gradient(to top, color-mix(in srgb, var(--wp--preset--color--amber) 55%, transparent) 0 0.28em, transparent 0.28em);
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------- */
/* How it works — a real sequence, so numbers carry meaning       */
/* ------------------------------------------------------------- */

.flc-step {
  counter-increment: flc-steps;
  border-top: 1px solid var(--wp--preset--color--line);
  padding-top: 1.2rem;
}

.flc-steps { counter-reset: flc-steps; }

.flc-step > h3::before {
  content: counter(flc-steps, decimal-leading-zero);
  display: block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.8rem;
  color: var(--wp--preset--color--cobalt);
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------- */
/* Buttons & links                                                */
/* ------------------------------------------------------------- */

.wp-block-button__link { transition: background-color 140ms ease, color 140ms ease; }

.is-style-flc-ghost .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--ink);
  border: 1.5px solid var(--wp--preset--color--ink);
}

.is-style-flc-ghost .wp-block-button__link:hover {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}

a:focus-visible, .wp-block-button__link:focus-visible {
  outline: 2.5px solid var(--wp--preset--color--cobalt);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- */
/* Utility                                                        */
/* ------------------------------------------------------------- */

.flc-mono { font-family: var(--wp--preset--font-family--mono); }

.flc-footer-note {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
}

/* Quiet card wash for the promise strip */
.flc-wash {
  background: var(--wp--preset--color--wash);
  border-radius: 14px;
}
