/* =====================================================================
   files.cl – arkusz stylów
   Paleta z logo: granat #17175c / #1b1b5e, błękity #4a8cf7 / #7ec2fb,
   zieleń akcentu #2fd39c. Design: lekki, „chmurowy", z delikatnym ruchem.
   ===================================================================== */

:root {
  --fc-navy:      #17175c;
  --fc-navy-2:    #1b1b5e;
  --fc-blue:      #4a8cf7;
  --fc-blue-2:    #7ec2fb;
  --fc-green:     #2fd39c;
  --fc-ink:       #24284b;
  --fc-muted:     #8a94b3;
  --fc-bg:        #eef4fb;
  --fc-bg-2:      #f6f9fd;
  --fc-card:      #ffffff;
  --fc-line:      #e3ebf6;
  --fc-radius:    16px;
  --fc-shadow:    0 10px 30px rgba(23, 23, 92, .08);
  --fc-shadow-sm: 0 4px 14px rgba(23, 23, 92, .06);
  --fc-grad:      linear-gradient(135deg, var(--fc-blue) 0%, var(--fc-blue-2) 55%, var(--fc-green) 115%);
}

* { box-sizing: border-box; }

.fc-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--fc-bg);
  color: var(--fc-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.fc-main { flex: 1 0 auto; }

/* Publiczne strony na delikatnym gradiencie tła */
.fc-public {
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(126, 194, 251, .28), transparent 60%),
    radial-gradient(900px 480px at 8% 108%, rgba(47, 211, 156, .18), transparent 60%),
    var(--fc-bg);
}

/* ---------------------------------------------------------- Topbar */
.fc-topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fc-line);
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 62px;
}
.fc-brand {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.02em;
  color: var(--fc-navy) !important;
}
.fc-brand em { color: var(--fc-blue); font-style: normal; }

/* Przełącznik języka */
.fc-langswitch .btn {
  border: 1px solid var(--fc-line);
  background: #fff;
  color: var(--fc-muted);
  font-weight: 600;
  padding: .28rem .6rem;
}
.fc-langswitch .btn.active {
  background: var(--fc-navy);
  color: #fff;
  border-color: var(--fc-navy);
}

/* ---------------------------------------------------------- Przyciski */
.fc-btn-primary {
  background: var(--fc-grad);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(74, 140, 247, .32);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fc-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 22px rgba(74, 140, 247, .40);
}
.fc-btn-primary:active { transform: translateY(0); }
.fc-btn-primary:disabled { filter: grayscale(.4) opacity(.7); box-shadow: none; }

.fc-btn-outline {
  border: 1px solid var(--fc-line);
  background: #fff;
  color: var(--fc-navy);
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.fc-btn-outline:hover { border-color: var(--fc-blue); color: var(--fc-blue); background: #fff; }

/* ---------------------------------------------------------- Karty */
.fc-card {
  background: var(--fc-card);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-sm);
  padding: 1.35rem 1.5rem;
}
.fc-card.p-0 { padding: 0; overflow: hidden; }
.fc-card-danger { border-color: #f3c9c4; background: #fff8f7; }

/* ---------------------------------------------------------- Panel nav */
.fc-panel { background: var(--fc-bg-2); }
.fc-panelnav {
  background: #fff;
  border-bottom: 1px solid var(--fc-line);
}
.fc-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .85rem 1.05rem;
  color: var(--fc-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
  border-bottom: 2.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.fc-tab:hover { color: var(--fc-navy); }
.fc-tab.active { color: var(--fc-navy); border-bottom-color: var(--fc-blue); }

.fc-alert-suspended {
  background: #fff4e5;
  border: 1px solid #ffd8a8;
  color: #a05a00;
  border-radius: var(--fc-radius);
}

/* ---------------------------------------------------------- Hero (home) */
.fc-hero {
  position: relative;
  min-height: calc(100vh - 62px);
  padding: 3rem 0;
  overflow: hidden;
}
.fc-hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fc-hero-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
  animation: fc-float 14s ease-in-out infinite;
}
.blob-1 { width: 360px; height: 360px; background: var(--fc-blue-2); top: 4%; left: 8%; }
.blob-2 { width: 300px; height: 300px; background: var(--fc-green); bottom: 6%; right: 12%; animation-delay: -4s; }
.blob-3 { width: 240px; height: 240px; background: var(--fc-blue); top: 44%; left: 62%; animation-delay: -8s; }

@keyframes fc-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(24px, -30px) scale(1.06); }
  66%      { transform: translate(-20px, 20px) scale(.96); }
}

.fc-hero-logo img {
  filter: drop-shadow(0 16px 34px rgba(23, 23, 92, .22));
  animation: fc-bob 5.5s ease-in-out infinite;
}
@keyframes fc-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.fc-hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -.03em;
  color: var(--fc-navy);
  margin-top: 1.25rem;
}
.fc-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--fc-muted);
  max-width: 620px;
  margin: .5rem auto 0;
}

/* Karta zaproszenia */
.fc-invite-card {
  max-width: 460px;
  margin-top: 2.4rem;
  padding: 2rem 1.8rem;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  border: 1px solid #fff;
  border-radius: 22px;
  box-shadow: var(--fc-shadow);
}
.fc-invite-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  border-radius: 18px;
  background: var(--fc-grad);
  box-shadow: 0 8px 18px rgba(74, 140, 247, .35);
  margin: 0 auto 1rem;
}

/* Kafelki cech */
.fc-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: 1.1rem .5rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #fff;
  border-radius: 16px;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fc-feature:hover { transform: translateY(-3px); box-shadow: var(--fc-shadow-sm); }
.fc-feature i { font-size: 1.5rem; color: var(--fc-blue); }
.fc-feature span { font-size: .86rem; font-weight: 600; color: var(--fc-navy); }

/* ---------------------------------------------------------- Auth / karty centralne */
.fc-authwrap { min-height: calc(100vh - 62px); padding: 2.5rem 1rem; }
.fc-authcard {
  width: 100%;
  max-width: 430px;
  background: var(--fc-card);
  border: 1px solid var(--fc-line);
  border-radius: 22px;
  box-shadow: var(--fc-shadow);
  padding: 2.3rem 2.1rem;
}
.fc-sharecard {
  width: 100%;
  max-width: 470px;
  background: var(--fc-card);
  border: 1px solid var(--fc-line);
  border-radius: 22px;
  box-shadow: var(--fc-shadow);
  padding: 2.6rem 2.2rem;
}
.fc-share-fileicon {
  width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #fff;
  border-radius: 22px;
  background: var(--fc-grad);
  box-shadow: 0 10px 22px rgba(74, 140, 247, .35);
}
.fc-share-meta {
  display: inline-block;
  padding: .5rem 1rem;
  background: var(--fc-bg-2);
  border: 1px solid var(--fc-line);
  border-radius: 999px;
  font-weight: 600;
  color: var(--fc-navy);
  font-size: .92rem;
}

/* ---------------------------------------------------------- Formularze */
.form-control, .form-select {
  border-radius: 11px;
  border: 1px solid var(--fc-line);
  padding: .6rem .8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fc-blue);
  box-shadow: 0 0 0 .2rem rgba(74, 140, 247, .18);
}
.fc-link { color: var(--fc-blue); text-decoration: none; font-weight: 600; }
.fc-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------- Tabele */
.fc-table { margin: 0; }
.fc-table thead th {
  background: var(--fc-bg-2);
  color: var(--fc-muted);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--fc-line);
  padding: .8rem 1rem;
}
.fc-table tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--fc-line); vertical-align: middle; }
.fc-table tbody tr:last-child td { border-bottom: none; }
.fc-table tbody tr:hover { background: var(--fc-bg-2); }

/* Odznaki */
.fc-badge-ext { background: var(--fc-bg); color: var(--fc-navy); font-weight: 700; }
.fc-badge-ok      { background: rgba(47, 211, 156, .16);  color: #12805c; }
.fc-badge-off     { background: var(--fc-bg);             color: var(--fc-muted); }
.fc-badge-pending { background: rgba(74, 140, 247, .16);  color: #2a63c4; }
.fc-badge-danger  { background: rgba(224, 74, 60, .14);   color: #c0392b; }

/* Progress */
.fc-progress { height: 10px; border-radius: 999px; background: var(--fc-bg); }
.fc-progress .progress-bar { background: var(--fc-grad); border-radius: 999px; }
.fc-progress-lg { height: 22px; border-radius: 999px; background: var(--fc-bg); font-weight: 700; }
.fc-progress-lg .progress-bar { background: var(--fc-grad); }

/* ---------------------------------------------------------- Modale */
.fc-modal { border: none; border-radius: 20px; box-shadow: var(--fc-shadow); }
.fc-modal .modal-header { border-bottom: 1px solid var(--fc-line); }
.fc-modal .modal-footer { border-top: 1px solid var(--fc-line); }

/* Dropzone */
.fc-dropzone {
  border: 2px dashed var(--fc-blue-2);
  border-radius: 16px;
  background: var(--fc-bg-2);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--fc-muted);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.fc-dropzone:hover, .fc-dropzone.dragover {
  background: rgba(74, 140, 247, .07);
  border-color: var(--fc-blue);
  color: var(--fc-navy);
}
.fc-dropzone i { font-size: 2.4rem; color: var(--fc-blue); display: block; margin-bottom: .4rem; }

.fc-picked {
  background: var(--fc-bg-2);
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  padding: .7rem .9rem;
  font-weight: 600;
  color: var(--fc-navy);
}

.fc-sharelink-box {
  background: var(--fc-bg-2);
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  padding: .8rem;
}

.fc-pulse { color: var(--fc-blue); animation: fc-pulse 1.4s ease-in-out infinite; }
@keyframes fc-pulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* ---------------------------------------------------------- Siła hasła */
.fc-strength-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--fc-bg);
  overflow: hidden;
}
.fc-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .25s ease, background .25s ease;
}
.fc-passrules { list-style: none; padding: 0; margin: 0; color: var(--fc-muted); }
.fc-passrules li { display: flex; align-items: center; gap: .4rem; padding: .1rem 0; }
.fc-passrules li.ok { color: #12805c; }
.fc-passrules li.ok i::before { content: "\F26B"; } /* bi-check-circle */

/* ---------------------------------------------------------- Footer / 404 */
.fc-footer {
  flex-shrink: 0;
  color: var(--fc-muted);
  border-top: 1px solid var(--fc-line);
  background: rgba(255, 255, 255, .6);
}
.fc-footer a { color: var(--fc-blue); text-decoration: none; }
.fc-404 {
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--fc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------- Animacje wejścia */
.fc-anim { opacity: 0; transform: translateY(14px); animation: fc-in .6s ease forwards; }
.fc-anim-1 { animation-delay: .05s; }
.fc-anim-2 { animation-delay: .16s; }
.fc-anim-3 { animation-delay: .27s; }
.fc-anim-4 { animation-delay: .38s; }
.fc-anim-5 { animation-delay: .49s; }
@keyframes fc-in { to { opacity: 1; transform: translateY(0); } }

/* Dostępność: uszanuj preferencję ograniczenia ruchu */
@media (prefers-reduced-motion: reduce) {
  .fc-anim, .fc-hero-logo img, .fc-hero-blobs .blob, .fc-pulse { animation: none; opacity: 1; transform: none; }
  .fc-anim { transform: none; }
}

/* Drobne poprawki mobilne */
@media (max-width: 575.98px) {
  .fc-authcard, .fc-sharecard { padding: 1.7rem 1.3rem; }
  .fc-card { padding: 1.1rem 1.15rem; }
  .fc-tab { padding: .7rem .7rem; font-size: .86rem; }
}
