/* ===================================
   GIFT PAGES ADDITIONAL STYLES
   Updated with image support
   =================================== */

/* -----------------------------------
   PAGE HERO (Simplified for Gift Pages)
----------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
  padding: 60px 40px 40px;
  text-align: center;
}

.page-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-content p {
  font-size: 1.15rem;
  color: #4a5568;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 30px;
}

.quick-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-link {
  background: white;
  padding: 8px 20px;
  border-radius: 20px;
  color: #6b46c1;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.quick-link:hover {
  background: #6b46c1;
  color: white;
  border-color: #6b46c1;
}

/* -----------------------------------
   INTRO SECTION
----------------------------------- */
.intro-section {
  margin-bottom: 60px;
  text-align: center;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  max-width: 900px;
  margin: 0 auto 40px;
}

.guide-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  color: #718096;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* -----------------------------------
   GIFT SECTIONS
----------------------------------- */
.gift-section {
  margin-bottom: 80px;
}

.gift-section h2 {
  color: #2d3748;
  font-size: 2rem;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 3px solid #e2e8f0;
}

.section-intro {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* -----------------------------------
   GIFT ITEMS - STANDARD (no image)
----------------------------------- */
.gift-item {
  background: #f8f9fa;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 10px;
  border-left: 4px solid #6b46c1;
  transition: all 0.3s ease;
}

.gift-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transform: translateX(5px);
}

.gift-item h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.gift-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.4rem;
}

.gift-description {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 15px;
}

.gift-details {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #718096;
}

.price::before {
  content: "💰 ";
}

.best-for::before {
  content: "👤 ";
}


/* -----------------------------------
   FEATURED GIFT ITEMS (with image)
----------------------------------- */
.gift-item.featured.has-image {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background: white;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 12px;
  border: none;
  position: relative;
  overflow: hidden;
}

.gift-item.featured.has-image:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

/* Add a subtle accent border */
.gift-item.featured.has-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gift-item.featured .gift-image {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  position: relative;
}

.gift-item.featured .gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gift-item.featured .gift-content {
  flex: 1;
  min-width: 0;
}

/* Featured badge - now overlays on image */
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Product links (affiliate buttons) */
.product-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-links a,
.product-link {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  border: 2px solid #6b46c1;
  border-radius: 25px;
  font-size: 0.9rem;
  color: #6b46c1;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-links a:hover,
.product-link:hover {
  background: #6b46c1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);
}

/* -----------------------------------
   SMALLER PRODUCT IMAGES (optional)
----------------------------------- */
.gift-item.has-image:not(.featured) {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.gift-item.has-image:not(.featured) .gift-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}

.gift-item.has-image:not(.featured) .gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gift-item.has-image:not(.featured) .gift-content {
  flex: 1;
}

/* -----------------------------------
   GIFT CATEGORIES
----------------------------------- */
.gift-category {
  margin-bottom: 40px;
  padding: 25px;
  background: #f7fafc;
  border-radius: 10px;
}

.gift-category h3 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.gift-list {
  list-style: none;
}

.gift-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  line-height: 1.6;
}

.gift-list li:last-child {
  border-bottom: none;
}

.gift-list strong {
  color: #2d3748;
}

/* -----------------------------------
   BUDGET SECTION
----------------------------------- */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.budget-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.budget-item h3 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.budget-item ul {
  list-style: none;
}

.budget-item li {
  padding: 8px 0;
  color: #4a5568;
  position: relative;
  padding-left: 20px;
}

.budget-item li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6b46c1;
  font-weight: bold;
}

/* -----------------------------------
   TIPS SECTION
----------------------------------- */
.tips-section {
  background: #f7fafc;
  padding: 40px;
  border-radius: 10px;
  margin-top: 60px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tip-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tip-card h3 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tip-card p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* -----------------------------------
   FAQ SECTION
----------------------------------- */
.faq-section {
  margin-top: 80px;
  padding: 50px;
  background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
  border-radius: 10px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.faq-item p {
  color: #4a5568;
  line-height: 1.7;
}

/* -----------------------------------
   CONCLUSION SECTION
----------------------------------- */
.conclusion {
  margin-top: 80px;
  text-align: center;
}

.conclusion h2 {
  margin-bottom: 25px;
}

.conclusion p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* -----------------------------------
   CTA BOX
----------------------------------- */
.cta-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-box h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.related-guides {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.related-link {
  background: white;
  color: #6b46c1;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.related-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* -----------------------------------
   ACTIVE NAV STATE
----------------------------------- */
nav a.active {
  color: #6b46c1;
  border-bottom-color: #6b46c1;
}

/* -----------------------------------
   MOBILE RESPONSIVE ADJUSTMENTS
----------------------------------- */
@media (max-width: 768px) {
  .page-hero-content h1 {
    font-size: 2rem;
  }
  
  .page-hero-content p {
    font-size: 1rem;
  }
  
  .guide-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .gift-section h2 {
    font-size: 1.7rem;
  }
  
  /* Stack featured image layout on mobile */
  .gift-item.featured.has-image {
    flex-direction: column;
  }
  
  .gift-item.featured .gift-image {
    width: 100%;
    max-width: 100%;
    height: 250px;
  }
  
  /* Stack regular image layout on mobile */
  .gift-item.has-image:not(.featured) {
    flex-direction: column;
  }
  
  .gift-item.has-image:not(.featured) .gift-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .budget-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-section {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 40px 20px 30px;
  }
  
  .page-hero-content h1 {
    font-size: 1.75rem;
  }
  
  .quick-links {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-link {
    width: 200px;
    text-align: center;
  }
  
  .guide-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .gift-item {
    padding: 20px;
  }
  
  .gift-details {
    flex-direction: column;
    gap: 10px;
  }
  
  .related-guides {
    flex-direction: column;
    align-items: center;
  }
  
  .related-link {
    width: 200px;
    text-align: center;
  }
  
  .cta-box {
    padding: 30px 20px;
  }
}

/* -----------------------------------
   PRINT STYLES
----------------------------------- */
@media print {
  .page-hero,
  nav,
  footer,
  .quick-links,
  .cta-box {
    display: none;
  }
  
  .gift-item {
    break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
  }
  
  h2 {
    font-size: 18pt;
    margin-top: 20pt;
  }
}

/* -----------------------------------
   CONTACT PAGE STYLES
----------------------------------- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
}

.success {
    color: green;
    background-color: #e6f3e6;
    padding: 10px;
    border-radius: 4px;
}

.error {
    color: red;
    background-color: #f3e6e6;
    padding: 10px;
    border-radius: 4px;
}

button {
    background-color: #6b46c1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #553c9a;
}


/* =========================================================
   TEXT-WRAP FOR FEATURED CARDS – TABLET & UP
   ========================================================= */
@media (min-width: 769px) {

  /* Turn card back into a block so float can work */
  .gift-item.featured.has-image {
    display: block;
    position: relative;
  }

  /* Float the image (slightly smaller for tablets) */
  .gift-item.featured.has-image .gift-image {
    float: left;
    width: 260px;          /* tablet size */
    height: 260px;
    margin: 0 25px 15px 0;
  }

  /* Badge stays anchored */
  .gift-item.featured.has-image .featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
  }

  /* Clear the float */
  .gift-item.featured.has-image::after {
    content: "";
    display: table;
    clear: both;
  }
}

/* --- Give desktops the larger 300 px image -------- */
@media (min-width: 992px) {
  .gift-item.featured.has-image .gift-image {
    width: 300px;
    height: 300px;
    margin: 0 30px 20px 0;
  }
}

/* Belt-and-suspenders float-clear for IE7-8 */
.gift-item.featured.has-image { overflow: hidden; }
