﻿/* --- BLOK UJEDNOLICZONYCH STYLÓW (GLOBALNE) --- */

:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #0f172a; /* Ciemne tło */
  --accent: #f97316; /* Akcent (pomarańczowy) */
  --muted: #475569; /* Wyciszony tekst (szary) */
  --card: #ffffff; /* Tło kart */
  --border: #e2e8f0; /* Kolor linii / jasne tło elementów */
  --danger: #b91c1c; /* Kolor dla danger (czerwony) */
  --success: #22c55e; /* Kolor dla sukcesu (zielony) */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Zmieniony gradient dla spójności z innymi narzędziami */
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 60%, #f8fafc 100%);
  color:#e2e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  width: min(1080px, 94vw);
  margin: 0 auto;
}
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* UJEDNOLICZONY HEADER */
.page-header { background: var(--bg); color: #fff; }
.page-header .container {
  display: flex;
  gap: 8px; 
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
}

.brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.05em; }
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; }
.breadcrumbs a { color: #e2e8f0; text-decoration: none; }
.breadcrumbs span { color: var(--muted); } 

/* UJEDNOLICZONA SEKCJA HERO/INTRO */
.intro {
  margin: 64px auto 36px;
  text-align: center;
  color:#e2e8f0;
  width: min(720px, 100%);
}

.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.intro p {
  margin: 0;
  color: #e2e8f0;
}

/* UJEDNOLICZONE KARTY I LAYOUT */
.card {
  background: var(--card);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 24px 50px rgba(15,23,42,0.35);
  color: var(--bg);
  margin-bottom: 28px;
}
h2 { color: var(--bg); }
.card h2 { margin-top: 0; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* UJEDNOLICZONE LABELE I INPUTY */
label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
input,
select,
textarea {
  padding: 12px;
  border-radius: 12px;
  border:1px solid rgba(148,163,184,0.25);
  font: inherit;
  /* Zmieniono tło inputów na ciemniejsze, aby były spójne z resztą narzędzi */
  background: rgba(15,23,42,0.9);
  color: #e2e8f0;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 0.7;
}
small { color: var(--muted); font-size: 13px; display: block; margin-top: 4px; }


/* UJEDNOLICZONE PRZYCISKI */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary { 
  background: var(--accent); 
  color: #fff; 
  /* Zgodnie z unifikacją */
  border: 0; 
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4); 
}
.btn-secondary { 
  background: #e2e8f0; 
  color: var(--bg); 
  /* Zgodnie z unifikacją */
  border: 0;
}
.btn-danger { 
  background: var(--danger); 
  color: #fff; 
} 

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover { transform: translateY(-2px); }


/* UJEDNOLICONA STOPKA (GŁÓWNY BLOK) */
.page-footer {
  background: rgba(15,23,42,0.92);
  font-size: 14px;
  text-align: center;
}

.page-footer .container {
  display: flex;
  gap: 8px; 
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  flex-wrap: wrap;
}
.footer-text {
    line-height: 1.4;
    color: #f1f5f9;
}

.btn-buy-coffee {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
  
  background: var(--accent); 
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4); 
}
.btn-buy-coffee:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- KONIEC UJEDNOLICZONYCH STYLÓW --- */


/* --- UNIKALNE STYLE SOCIAL MEDIA --- */

.templates-grid {
  margin: 36px 0 56px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.template-card {
  /* Zgodność z .card, ale specyficzne dla templatek */
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 24px 50px rgba(15,23,42,0.35);
  display: grid;
  gap: 14px;
  /* Dodano pozycjonowanie dla przycisku */
  position: relative; 
  padding-bottom: 80px; 
}

.template-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--bg);
}

.template-card textarea {
  width: 100%;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font: inherit;
  resize: vertical;
  line-height: 1.5;
  font-size: 15px;
}

.template-card .btn-secondary {
  /* Ustawienie przycisku na dole karty */
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  width: auto; /* Zapewnienie, że przycisk nie ma 100% szerokości z domyślnych styli */
}

.template-meta {
  display: grid;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  /* Zmieniono kolory dla lepszej spójności z paletą */
  background: rgba(249, 115, 22, 0.18);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
  width: max-content;
}

.template-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  padding: 12px;
}
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }

.placeholder {
  min-height: 140px;
  display: grid;
  place-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
  opacity: 0.6;
}

.placeholder.promo { background: #334155; }
.placeholder.stories { background: #64748b; }
.placeholder.before { background: #334155; }
.placeholder.after { background: #64748b; }
.placeholder.tip { background: #475569; }

/* --- RESPONSYWNOŚĆ --- */

@media (max-width: 640px) {
  .intro { margin-top: 40px; }
  .templates-grid { margin-bottom: 40px; }
  .grid { grid-template-columns: 1fr; }
  
  .page-header .container {
    justify-content: center;
    text-align: center;
  }
  .breadcrumbs { display: none; }
  
  .page-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; 
  }
  .btn-buy-coffee {
    width: 100%;
  }
  .desktop-only {
    display: none;
  }
}