/**
 * OG Hemp - Authentic Instagram App UI & Bio Storefront
 * Strictly scoped to #oghemp-insta-hub
 */

#oghemp-insta-hub {
  --ig-bg: #000000;
  --ig-surface: #121212;
  --ig-surface-card: #1c1c1e;
  --ig-border: #262626;
  --ig-text: #f5f5f5;
  --ig-secondary-text: #a8a8a8;
  --ig-blue: #0095f6;
  --ig-blue-hover: #1877f2;
  --ig-green: #25d366;
  --ig-gold: #e5b869;
  --ig-story-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ig-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  background-color: var(--ig-bg);
  color: var(--ig-text);
  font-family: var(--ig-font);
  margin: 0;
  padding: 0 0 80px 0;
  min-height: 100vh;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

#oghemp-insta-hub * {
  box-sizing: border-box;
}

#oghemp-insta-hub .ig-app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--ig-bg);
  min-height: 100vh;
  position: relative;
}

/* 1. App Top Navigation Bar */
#oghemp-insta-hub .ig-top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--ig-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  height: 48px;
}

#oghemp-insta-hub .ig-nav-handle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ig-text);
  text-decoration: none;
}

#oghemp-insta-hub .ig-verified-badge {
  color: var(--ig-blue);
  display: inline-flex;
}

#oghemp-insta-hub .ig-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#oghemp-insta-hub .ig-nav-btn {
  color: var(--ig-text);
  text-decoration: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

#oghemp-insta-hub .ig-nav-btn:hover {
  opacity: 0.7;
}

/* 2. Profile Stats Header */
#oghemp-insta-hub .ig-profile-header {
  padding: 16px 16px 8px;
}

#oghemp-insta-hub .ig-profile-main-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

#oghemp-insta-hub .ig-avatar-container {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ig-story-gradient);
  flex-shrink: 0;
}

#oghemp-insta-hub .ig-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border: 2px solid var(--ig-bg);
  display: block;
}

#oghemp-insta-hub .ig-stats-row {
  display: flex;
  flex-grow: 1;
  justify-content: space-around;
  text-align: center;
}

#oghemp-insta-hub .ig-stat-col {
  display: flex;
  flex-direction: column;
}

#oghemp-insta-hub .ig-stat-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ig-text);
}

#oghemp-insta-hub .ig-stat-label {
  font-size: 0.8rem;
  color: var(--ig-secondary-text);
}

/* 3. Bio Information */
#oghemp-insta-hub .ig-bio-section {
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

#oghemp-insta-hub .ig-bio-name {
  font-weight: 700;
  color: var(--ig-text);
  margin-bottom: 2px;
}

#oghemp-insta-hub .ig-bio-category {
  color: var(--ig-secondary-text);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

#oghemp-insta-hub .ig-bio-lines {
  color: var(--ig-text);
  margin-bottom: 6px;
}

#oghemp-insta-hub .ig-bio-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e0f2fe;
  font-weight: 600;
  text-decoration: none;
}

#oghemp-insta-hub .ig-bio-link:hover {
  text-decoration: underline;
}

/* 4. Action Buttons Bar */
#oghemp-insta-hub .ig-action-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

#oghemp-insta-hub .ig-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

#oghemp-insta-hub .ig-btn-primary {
  background-color: var(--ig-blue);
  color: #ffffff;
  border: none;
}

#oghemp-insta-hub .ig-btn-primary:hover {
  background-color: var(--ig-blue-hover);
  color: #ffffff;
}

#oghemp-insta-hub .ig-btn-secondary {
  background-color: var(--ig-surface-card);
  color: var(--ig-text);
  border: 1px solid var(--ig-border);
}

#oghemp-insta-hub .ig-btn-secondary:hover {
  background-color: #2c2c2e;
}

#oghemp-insta-hub .ig-btn-icon {
  flex: 0 0 34px;
  background-color: var(--ig-surface-card);
  color: var(--ig-green);
  border: 1px solid var(--ig-border);
}

#oghemp-insta-hub .ig-btn-icon:hover {
  background-color: #2c2c2e;
}

/* 5. Story Highlights (5 Equally Spaced Categories) */
#oghemp-insta-hub .insta-highlights-scroll {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 6px 0 16px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

#oghemp-insta-hub .ig-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 1;
  max-width: 68px;
  box-sizing: border-box;
}

#oghemp-insta-hub .ig-highlight-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ig-border);
  background-color: var(--ig-surface-card);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

#oghemp-insta-hub .ig-highlight-item:hover .ig-highlight-circle {
  transform: scale(1.08);
  border-color: var(--ig-gold);
}

#oghemp-insta-hub .ig-highlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1e3a2b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

#oghemp-insta-hub .ig-highlight-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ig-text);
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* 6. Tabs Navigation (Grid / Reels / Shop) */
#oghemp-insta-hub .ig-tabs-nav {
  display: flex;
  border-top: 1px solid var(--ig-border);
  border-bottom: 1px solid var(--ig-border);
}

#oghemp-insta-hub .ig-tab-btn {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ig-secondary-text);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-size: 1.1rem;
}

#oghemp-insta-hub .ig-tab-btn.active {
  color: var(--ig-text);
  border-bottom-color: var(--ig-text);
}

/* 7. Instagram 3-Column Visual Grid */
#oghemp-insta-hub .insta-grid-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding-top: 2px;
}

#oghemp-insta-hub .ig-post-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--ig-surface);
  overflow: hidden;
  display: block;
  text-decoration: none;
}

#oghemp-insta-hub .ig-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

#oghemp-insta-hub .ig-post-tile:hover .ig-post-img {
  transform: scale(1.05);
}

#oghemp-insta-hub .ig-post-type-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

#oghemp-insta-hub .ig-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#oghemp-insta-hub .ig-post-tile:hover .ig-post-overlay,
#oghemp-insta-hub .ig-post-tile:focus .ig-post-overlay {
  opacity: 1;
}

#oghemp-insta-hub .ig-overlay-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#oghemp-insta-hub .ig-overlay-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ade80;
}

/* 8. Bottom App Navigation Bar */
#oghemp-insta-hub .ig-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--ig-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-sizing: border-box;
}

#oghemp-insta-hub .ig-bottom-icon {
  color: var(--ig-text);
  font-size: 1.35rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#oghemp-insta-hub .ig-bottom-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ==========================================================================
   Responsive Breakpoints & Viewport Optimizations
   ========================================================================== */

/* Extra-Small Mobile Devices (320px - 380px: iPhone SE, small Androids) */
@media (max-width: 380px) {
  #oghemp-insta-hub .ig-avatar-container {
    width: 68px;
    height: 68px;
  }
  
  #oghemp-insta-hub .ig-stat-num {
    font-size: 0.92rem;
  }

  #oghemp-insta-hub .ig-stat-label {
    font-size: 0.72rem;
  }

  #oghemp-insta-hub .ig-highlight-item {
    max-width: 56px;
  }

  #oghemp-insta-hub .ig-highlight-circle {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
  }

  #oghemp-insta-hub .ig-highlight-inner {
    font-size: 1.15rem;
  }

  #oghemp-insta-hub .ig-highlight-title {
    font-size: 0.64rem;
  }

  #oghemp-insta-hub .ig-btn {
    font-size: 0.8rem;
    height: 32px;
  }

  #oghemp-insta-hub .ig-bio-section {
    font-size: 0.82rem;
  }
}

/* Tablet & Desktop Viewports (540px+) - Sleek App Mockup Frame */
@media (min-width: 540px) {
  #oghemp-insta-hub {
    padding: 30px 16px 60px;
    background: radial-gradient(circle at 50% 15%, #183324 0%, #060b12 100%);
  }

  #oghemp-insta-hub .ig-app-wrapper {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--ig-border);
    overflow: hidden;
    margin-bottom: 30px;
  }

  #oghemp-insta-hub .ig-bottom-bar {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}
