/* =========================================================
JAPAN AWAITS — BLOCK 07: INSTAGRAM FEED GALLERY
SCOPED STYLES MATCHING EXACT DEMO SPECIFICATIONS
========================================================= */

.ja-instagram-section {
  position: relative;
  width: 100%;
}

.ja-instagram-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   HEADER & HASHTAG BADGE
--------------------------------------------------------- */
.ja-instagram-header {
  margin-bottom: 34px;
}

.ja-instagram-header .ja-section-tag {
  color: #bb3421;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ja-insta-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ja-insta-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #bb3421;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(187, 52, 33, 0.35);
  flex-shrink: 0;
}

.ja-insta-badge-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ja-instagram-header .ja-section-title {
  font-size: 38px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.6px;
  margin: 0;
  line-height: 1.15;
}

.ja-instagram-header .ja-section-desc {
  max-width: 720px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}


/* ---------------------------------------------------------
   INSTAGRAM POSTS GRID & CARDS
--------------------------------------------------------- */
.ja-insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.ja-insta-card {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #111827;
}

.ja-insta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.ja-insta-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

.ja-insta-card:hover .ja-insta-img {
  transform: scale(1.08);
}

.ja-insta-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.92) 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* Floating Top Right Insta Badge Icon */
.ja-insta-card-top-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.ja-insta-card:hover .ja-insta-card-top-icon {
  opacity: 1;
  transform: scale(1);
}

.ja-insta-card-top-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Card Content Overlay Bottom */
.ja-insta-card-content {
  position: relative;
  z-index: 3;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ja-insta-loc {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #facc15;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ja-insta-loc svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.ja-insta-post-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 2px 0 4px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ja-insta-post-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ---------------------------------------------------------
   ACTION BUTTONS ROW (LOAD MORE & FOLLOW)
--------------------------------------------------------- */
.ja-insta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.ja-insta-load-more {
  background: #374151;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ja-insta-load-more:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ja-insta-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 1.5px solid #e5e7eb;
  color: #bb3421;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ja-insta-follow-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ja-insta-follow-btn:hover {
  border-color: #bb3421;
  background: #fff5f3;
  color: #bb3421;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(187, 52, 33, 0.12);
}


/* ---------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
--------------------------------------------------------- */
@media (max-width: 1100px) {
  .ja-insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .ja-insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .ja-insta-grid {
    grid-template-columns: 1fr;
  }
  .ja-instagram-header .ja-section-title {
    font-size: 28px;
  }
  .ja-insta-card {
    height: 340px;
  }
}
