/*! Funkce — funkce.css */

/* Feature hero grid */
.fh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.fh-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.fh-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.fh-card.highlight {
  grid-column: 1 / -1;
  background: var(--gray-900);
  color: #fff;
  border-color: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.fh-card.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.fh-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.fh-icon svg {
  width: 24px;
  height: 24px;
}

.fh-card.highlight .fh-icon {
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue-300);
}

.fh-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.fh-card.highlight h3 {
  color: #fff;
  font-size: 1.3rem;
}

.fh-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.fh-card.highlight p {
  color: var(--gray-400);
}

/* Mini chat preview */
.chat-preview {
  background: #0f1117;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-msg:last-child {
  margin-bottom: 0;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

.chat-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.chat-text {
  font-size: 0.85rem;
  color: #c9d1d9;
  line-height: 1.55;
}

.chat-text .mention {
  color: var(--blue-300);
  font-weight: 600;
}

/* Feature detail rows */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.feature-detail:last-child {
  border-bottom: none;
}

.feature-detail.reverse .fd-text {
  order: 2;
}

.feature-detail.reverse .fd-visual {
  order: 1;
}

.fd-text h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 14px;
}

.fd-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.fd-checklist {
  list-style: none;
  margin-top: 16px;
  padding: 0;
}

.fd-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.fd-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--blue-50);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%232563EB' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5L11 5l1 1-5.5 5.5z'/%3E%3C/svg%3E");
}

.fd-visual-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

/* Notification mock */
.notif-mock {
  width: 100%;
  max-width: 320px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}

.notif-item:hover {
  transform: translateX(4px);
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  margin-top: 6px;
  flex-shrink: 0;
}

.notif-dot.read {
  background: var(--gray-200);
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.notif-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.notif-time {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* DnD mock */
.dnd-mock {
  width: 100%;
}

.dnd-area {
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: var(--bg);
  transition: border-color .2s, background .2s;
}

.dnd-area:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.dnd-area svg {
  width: 36px;
  height: 36px;
  color: var(--gray-400);
  margin: 0 auto 10px;
}

.dnd-area p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dnd-area p strong {
  color: var(--blue-500);
}

.dnd-files {
  margin-top: 16px;
}

.dnd-file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.dnd-file-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.dnd-file-icon.pdf {
  background: var(--red-600);
}

.dnd-file-icon.img {
  background: var(--purple-600);
}

.dnd-file-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.dnd-file-size {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* Theme mock */
.theme-mock {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.theme-card {
  border-radius: 10px;
  padding: 18px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.theme-card span {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.theme-card small {
  font-size: 0.68rem;
  opacity: 0.6;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .fh-grid {
    grid-template-columns: 1fr;
  }

  .fh-card.highlight {
    grid-template-columns: 1fr;
  }

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-detail.reverse .fd-text {
    order: 1;
  }

  .feature-detail.reverse .fd-visual {
    order: 2;
  }
}

@media (max-width: 600px) {
  .theme-mock {
    grid-template-columns: 1fr;
  }
}
