/* ===================================
   Portfolio - Full-Height 4-Column Layout
   No page scroll, columns scroll
   =================================== */

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --primary: #6366f1;
  --accent: #22d3ee;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --radius: 10px;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Header - Minimal */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.name {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.social-icon:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

/* Main Grid - 4 Columns, fills remaining height */
.main-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.column-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.column-title .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.icon-emoji {
  font-size: 1.1rem;
}

.column-link {
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.column-link:hover {
  color: var(--accent);
}

/* Scrollable Item List */
.item-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding-right: 0.25rem;
  min-height: 0;
}

/* Custom scrollbar */
.item-list::-webkit-scrollbar {
  width: 4px;
}

.item-list::-webkit-scrollbar-track {
  background: transparent;
}

.item-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.item-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.item:last-child {
  border-bottom: none;
}

.item-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  transition: color 0.15s;
  word-wrap: break-word;
}

.item-link:hover {
  color: var(--accent);
}

.item-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.loading-item,
.error-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.item-header {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 0 0.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-header:first-child {
  margin-top: 0;
  border-top: none;
}

/* Responsive */
@media (max-width: 1000px) {
  .main-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  html,
  body {
    overflow: auto;
  }

  .container {
    height: auto;
    min-height: 100vh;
  }

  .column {
    min-height: 300px;
    max-height: 400px;
  }
}

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

  .container {
    padding: 1rem;
  }

  .header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .column {
    min-height: 250px;
    max-height: 350px;
  }
}