/* ==========================================================================
   LAYOUT SYSTEM - Asymmetric Editorial Grid & Bento Modular System
   ========================================================================== */

#app {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 640px) {
  #app {
    padding: var(--space-10) var(--space-6) var(--space-12);
  }
}

/* Header Action Row */
.action-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: var(--space-6);
}

/* Profile Editorial Section */
.profile-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Main Cards Bento Stream */
#main-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-8);
}

/* Bento Asymmetric Pair Layout on Tablet / Desktop */
@media (min-width: 580px) {
  .bento-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
}

/* Sub-section Header Divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

/* Footer Container */
#footer-container {
  width: 100%;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
