/* ======================================================
   iOS RESPONSIVE DESIGN & FLOATING DOCK (BOTTOM NAV)
   ====================================================== */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .main-container {
    padding: 0 1rem 100px;
  }

  .hero-countdown {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* iOS Floating Dock (Mobil pastki navigatsiya) */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .navbar-wrapper {
    top: 8px;
    padding: 0 0.75rem;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 62px;
    background: var(--glass-nav);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--glass-shadow-hover);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none !important;
    gap: 3px;
    flex: 1;
    transition: all 0.2s ease;
  }

  .bottom-nav-item.active {
    color: var(--ios-blue);
    transform: translateY(-2px);
  }

  .bottom-nav-icon {
    font-size: 1.25rem;
  }

  .bottom-nav-fab {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--ios-blue) 0%, var(--ios-indigo) 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--primary-glow);
    font-size: 1.5rem;
    margin-top: -16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
  }

  .bottom-nav-fab:active {
    transform: scale(0.92);
  }

  .thread-card {
    flex-direction: column;
  }

  .thread-votes {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }

  .countdown-timer {
    width: 100%;
    justify-content: space-between;
  }

  .timer-box {
    min-width: 58px;
    padding: 0.5rem 0.75rem;
  }

  .timer-num {
    font-size: 1.6rem;
  }
}
