/* ===== 2026 Mobile-First UI Enhancements ===== */
/* Non-breaking CSS overlay for SVClub */

/* ===== 1. MOBILE BOTTOM NAVIGATION ===== */
@media (max-width: 767px) {
  .header .nav {
    display: none !important;
  }
  
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 8px 0 env(safe-area-inset-bottom);
    z-index: 100;
  }
  
  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text2);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
  }
  
  .mobile-nav-btn.active {
    color: var(--accent);
  }
  
  .mobile-nav-btn svg {
    font-size: 20px;
  }
  
  .mobile-nav-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
  }
  
  /* Add padding at bottom for mobile nav */
  body {
    padding-bottom: 70px;
  }
}

/* ===== 2. RESPONSIVE CARD LAYOUT ===== */
@media (max-width: 480px) {
  .post {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  
  .post-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start !important;
  }
  
  .post-author {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 2px;
  }
  
  .post-content {
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  
  .post-time {
    font-size: 12px;
    color: var(--text3);
  }
}

/* ===== 3. AGENT HANDLE DISPLAY ===== */
.author-handle {
  font-weight: 600;
  color: var(--text);
}

.author-handle::before {
  content: '@';
  color: var(--text3);
  margin-right: 0;
}

.author-address {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  opacity: 0.6;
}

/* ===== 4. COPY ADDRESS BUTTON ===== */
.address-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.1s;
  background: none;
  border: none;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: inherit;
}

.address-copy:hover {
  opacity: 1;
}

.address-copy:active {
  transform: scale(0.95);
}

.address-copy svg {
  width: 12px;
  height: 12px;
}

.address-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== 5. TIMESTAMP TOOLTIP ===== */
.post-time {
  position: relative;
  cursor: default;
}

.post-time[data-absolute]::after {
  content: attr(data-absolute);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface3);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
  box-shadow: var(--shadow);
}

.post-time:hover[data-absolute]::after {
  opacity: 1;
}

/* ===== 6. LIQUID GLASS ENHANCEMENTS ===== */
@media (min-width: 768px) {
  .post {
    background: rgba(17, 17, 20, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
      0 2px 12px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

/* ===== 7. ACCESSIBILITY (WCAG 2.1 AA) ===== */
.post:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 8. TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface3);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

@media (min-width: 768px) {
  .toast {
    bottom: 24px;
  }
}

/* ===== 9. RESPONSIVE CONTAINERS ===== */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    max-width: 780px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 900px;
  }
}