/* 
OFFERS SECTION - Flutter Style Responsive System
Clean, systematic approach with smart breakpoints
*/

/* ===== OFFERS SECTION ===== */
.offers-section {
  padding: 16px;
  background: var(--color-bg-primary);
  overflow: hidden;
  margin-bottom: 150px; /* 50px */
}

.offers-header {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-left: 8px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

/* ===== FLUTTER-STYLE RESPONSIVE GRID SYSTEM ===== */

/* DEFAULT: 3-Column Layout for Medium+ Screens */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
  box-sizing: border-box;
}

/* SMALL SCREENS: 2x2 Grid (Flutter-style smart responsive) */
@media (max-width: 330px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 4px;
  }

  .offers-section {
    padding: 12px;
    margin-bottom: 50px; /* Consistent space for bottom nav 80px*/
  }

  .offers-header {
    font-size: 16px;
    margin-left: 4px;
    margin-bottom: 12px;
  }
}

/* MEDIUM SCREENS: 3x2 Grid */
@media (min-width: 331px) and (max-width: 768px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 8px 6px;
  }

  .offers-section {
    padding: 14px;
    margin-bottom: 50px; /* 60px */
  }
}

/* LARGE SCREENS: 3x2 Grid with more space */
@media (min-width: 769px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 12px 8px;
    max-width: 900px; /* Prevent too wide on desktop */
  }

  .offers-section {
    padding: 20px;
    margin-bottom: 50px; /* 40px */
  }

  .offers-header {
    font-size: 20px;
    margin-left: 8px;
  }
}

/* ===== OFFER CARDS - FLUTTER STYLE ===== */

/* Base Card Style */
.offer-card {
  background: #ffffff;
  border: 1px solid #e3e6ff;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
  min-height: 100px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Hover Effects */
.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #3b82f6;
}

.offer-card:hover .offer-icon-container {
  transform: scale(1.05);
}

.offer-card:hover .offer-title {
  color: #3b82f6;
}

/* Icon Container - Responsive Sizing */
.offer-icon-container {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.offer-icon {
  font-size: 20px;
  color: white;
  line-height: 1;
  transition: all 0.3s ease;
}

/* Title - Responsive Typography */
.offer-title {
  font-size: 11px;
  font-weight: 600;
  color: #333333;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.1px;
  transition: color 0.3s ease;
}

/* ===== RESPONSIVE CARD ADJUSTMENTS ===== */

/* Small Screens - Compact Cards */
@media (max-width: 480px) {
  .offer-card {
    padding: 12px;
    min-height: 85px;
    border-radius: 12px;
  }

  .offer-icon-container {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .offer-icon {
    font-size: 16px;
  }

  .offer-title {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
  }
}

/* Medium Screens - Balanced Cards */
@media (min-width: 481px) and (max-width: 768px) {
  .offer-card {
    padding: 14px;
    min-height: 95px;
    border-radius: 14px;
  }

  .offer-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    margin-bottom: 7px;
  }

  .offer-icon {
    font-size: 18px;
  }

  .offer-title {
    font-size: 10px;
    font-weight: 600;
  }
}

/* Large Screens - Spacious Cards */
@media (min-width: 769px) {
  .offer-card {
    padding: 20px;
    min-height: 120px;
    border-radius: 18px;
  }

  .offer-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .offer-icon {
    font-size: 24px;
  }

  .offer-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
  }
}

/* ===== OFFER COLORS - PROFESSIONAL PALETTE ===== */

.offer-card.esim .offer-icon-container {
  background: linear-gradient(135deg, #4caf50, #45a049);
}
.offer-card.esim .offer-icon {
  color: white;
}

.offer-card.unlimited .offer-icon-container {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}
.offer-card.unlimited .offer-icon {
  color: white;
}

.offer-card.voice .offer-icon-container {
  background: linear-gradient(135deg, #2196f3, #1976d2);
}
.offer-card.voice .offer-icon {
  color: white;
}

.offer-card.no-expire .offer-icon-container {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}
.offer-card.no-expire .offer-icon {
  color: white;
}

.offer-card.ftth .offer-icon-container {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}
.offer-card.ftth .offer-icon {
  color: white;
}

.offer-card.mifi .offer-icon-container {
  background: linear-gradient(135deg, #009688, #00796b);
}
.offer-card.mifi .offer-icon {
  color: white;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  .offer-card {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .offer-title {
    color: #ffffff;
  }

  .offer-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  .offer-card:hover .offer-title {
    color: #4f46e5;
  }
}
