/* =======================================
   saites.css - TRULY COMPACT Links page 
   Use with skats.css and rakstiem.css
   ======================================= */

/* =======================================
   CONTENT CONTAINER
   ======================================= */

.links-container {
  max-width: 900px;
  padding: 12px 0;
  margin: 0 auto;
}

.page-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

/* =======================================
   ULTRA COMPACT CATEGORIES
   ======================================= */

.link-category {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: 0 0 12px;
  overflow: hidden;
}

/* Minimal category header */
.category-header {
  background: linear-gradient(135deg, var(--accent), #234235);
  color: white;
  padding: 6px 12px;
  margin: 0;
}

.category-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-icon {
  font-size: 0.9em;
}

.category-description {
  margin: 1px 0 0;
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

/* =======================================
   SUPER COMPACT LINKS - INLINE LAYOUT
   ======================================= */

.links-list {
  padding: 0;
}

.link-item {
  padding: 4px 12px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
  min-height: 32px;
}

.link-item:last-child {
  border-bottom: none;
}

.link-item:hover {
  background: rgba(30, 106, 103, 0.04);
}

/* =======================================
   COMPACT LINK ELEMENTS - INLINE
   ======================================= */

.link-title {
  margin: 0;
  line-height: 1.1;
  display: inline;
}

.link-title a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.link-title a:hover {
  text-decoration: underline;
}

.link-url {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 0 12px;
  display: inline;
}

.link-description {
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
  display: block;
  padding-left: 4px;
}

/* =======================================
   MOBILE RESPONSIVE
   ======================================= */

@media (max-width: 768px) {
  .link-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 6px 10px;
  }

  .link-description,
  .link-url {
    grid-column: 1;
  }

  .link-url {
    text-align: left;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .link-category {
    margin-bottom: 8px;
  }

  .category-header {
    padding: 4px 8px;
  }

  .category-title {
    font-size: 0.85rem;
  }
}