/* ========================================================
   freetest.pl - Katalog Aplikacji
   Autor: Dariusz Krzysztof Zach
   Styl CSS (Wersja Czysty HTML + CSS)
   ======================================================== */

:root {
  --bg-main: #020617;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: #0f172a;
  --border-color: #1e293b;
  --border-hover: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #4f46e5;
  --primary-hover: #6366f1;
  --primary-light: #818cf8;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= Navbar ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

.header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.brand-title span {
  color: #818cf8;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ================= Hero Section ================= */
.hero {
  padding: 2.75rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= Main Content ================= */
.main {
  flex: 1;
  padding: 2.5rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================= App Card ================= */
.app-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.app-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.1);
}

/* Top Accent Bar */
.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.accent-indigo {
  background: linear-gradient(to right, #6366f1, #3b82f6);
}

.accent-purple {
  background: linear-gradient(to right, #a855f7, #6366f1);
}

.accent-emerald {
  background: linear-gradient(to right, #10b981, #14b8a6);
}

.accent-amber {
  background: linear-gradient(to right, #f59e0b, #f97316);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-indigo {
  background-color: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.icon-purple {
  background-color: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.icon-emerald {
  background-color: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-amber {
  background-color: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #34d399;
}

.pill-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Card Body */
.card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 0.375rem;
}

.subdomain-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #020617;
  border: 1px solid #1e293b;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #818cf8;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.copy-btn {
  padding: 0.25rem;
  border-radius: 0.375rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.copy-btn:hover {
  color: var(--text-main);
  background-color: #1e293b;
}

.card-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Card Footer */
.card-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.launch-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.launch-btn:hover {
  background-color: #6366f1;
}

/* ================= Footer ================= */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  background-color: #020617;
  padding: 2rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer .container {
    flex-direction: row;
    text-align: left;
  }
}

.footer-author strong {
  color: #e2e8f0;
  font-weight: 500;
}

.footer-rights {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

/* ================= Toast Notification ================= */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
