/* ===== Home Screen ===== */
.home-screen {
  position: absolute;
  inset: 0;
  padding: 62px 14px 22px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
  z-index: 1;
}

.home-screen.visible { opacity: 1; }

.home-status {
  position: absolute;
  top: 16px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.status-right { display: flex; gap: 6px; align-items: center; }

/* ===== Widget Grid ===== */
.widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: 10px;
  transition: opacity 0.3s ease;
}

.widgets-grid.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Container that holds the widget card and its label */
.widget-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.widget-wrap:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 26px;
}

.widget {
  width: 100%;
  background: var(--color-widget-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--color-border);
  border-top-color: var(--color-border-top);
  border-radius: 24px;
  padding: var(--space-3);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-fast) ease, border-color var(--duration-fast) ease, background var(--duration-fast) ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .widget-wrap:hover .widget {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.35);
    background: var(--color-widget-bg-hover);
  }
}

/* Label sits below the widget card, centered */
.widget-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ===== App Grids ===== */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-2);
  flex: 1;
}

.app-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  align-content: center;
}

/* ===== App Icons ===== */
.app-icon {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) ease;
  aspect-ratio: 1;
  padding: var(--space-2);
}

@media (hover: hover) and (pointer: fine) {
  .app-icon:hover { transform: scale(1.05); }
}

.app-icon svg,
.app-icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

/* Icon overrides — image-based icons have no bg or padding */
.icon-mail    { background: none !important; padding: 0; border: none; }
.icon-artium  { background: none !important; padding: 0; }
.icon-popcorn { background: none !important; padding: 0; }
.icon-artium img, .icon-popcorn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Icon brand gradients */
.icon-flutter  { background: linear-gradient(135deg, #0553B1, #027DFD); }
.icon-dart     { background: linear-gradient(135deg, #00B4AB, #006878); }
.icon-firebase { background: linear-gradient(135deg, #F57C00, #FF8F00); }
.icon-git      { background: linear-gradient(135deg, #c0392b, #F05032); }
.icon-xcode    { background: linear-gradient(135deg, #1575F9, #0040DD); }
.icon-postman  { background: linear-gradient(135deg, #FF6C37, #E04A1A); }
.icon-restapi  { background: linear-gradient(135deg, #546E7A, #37474F); }
.icon-github   { background: #000; border: 1px solid #333; }
.icon-linkedin { background: #0A66C2; }
.icon-medium   { background: #000; }
.icon-figma    { background: #1e1e1e; }
.icon-vscode   { background: #007ACC; }

/* ===== Dock ===== */
.dock {
  margin-top: auto;
  background: var(--color-dock-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  padding: 10px var(--space-3);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.dock-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
  overflow: hidden;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .dock-icon:hover { transform: translateY(-4px); }
}

.dock-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.dock-icon svg { width: 58%; height: 58%; flex-shrink: 0; }
.dock-icon img { width: 46px; height: 46px; object-fit: cover; display: block; flex-shrink: 0; }

/* ===== Side Panels ===== */
.side-panel {
  width: 300px;
  max-height: 590px;
  flex-shrink: 0;
  align-self: center;
  background: var(--color-panel-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--color-border-strong);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 26px 22px;
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
  scrollbar-width: none;
}

.side-panel::-webkit-scrollbar { display: none; }

/* ===== About Panel ===== */
.about-memoji {
  width: 96px; height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto var(--space-1);
}

.about-name {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.25;
}

.about-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-top: var(--space-1);
}

.panel-divider {
  height: 1px;
  background: var(--color-border-subtle);
  margin: 2px 0;
}

.about-bio {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.55;
  padding-left: var(--space-4);
  position: relative;
}

.about-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.35);
}

.about-list li strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* ===== Guide Panel ===== */
.guide-header { display: flex; flex-direction: column; gap: 3px; }

.guide-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.guide-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-items { display: flex; flex-direction: column; gap: 18px; }
.guide-item  { display: flex; align-items: flex-start; gap: 13px; }

.guide-icon {
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
}

.guide-icon svg { width: 16px; height: 16px; }

.guide-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--color-text-dim);
  padding-top: 7px;
}

.guide-text strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* ===== Medium Article Widget ===== */
.article-widget {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-widget-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--color-border);
  border-top-color: var(--color-border-top);
  border-radius: 24px;
  padding: 13px 15px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .article-widget:hover {
    background: var(--color-widget-bg-hover);
    border-color: rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.35);
  }
}

.article-widget-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.article-logo {
  height: 11px;
  width: auto;
  flex-shrink: 0;
  color: #fff;
  opacity: 0.85;
}

.article-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
}

.article-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.article-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.01em;
}
