/* ============================================
   PROFESSIONAL DEALS PAGE STYLING
   Premium UI/UX Design
   ============================================ */

:root {
  --primary-color: #8B2635;
  --primary-dark: #6B1F28;
  --primary-light: #A03D4A;
  --accent-gold: #D4AF37;
  --accent-blue: #0099CC;
  --success-color: #06d6a0;
  --warning-color: #ffa500;
  --danger-color: #ef476f;
  --light-bg: #f8f9fa;
  --dark-text: #2d3436;
  --medium-text: #636e72;
  --light-text: #95a5a6;
  --border-color: #dfe6e9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SECTION - PREMIUM STYLING
   ============================================ */

.deals-hero {
  background-image: url('/images/Deals.png');
  background-size: contain;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-color: #8B6F47;
  color: white;
  padding: 120px 60px;
  text-align: left;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Overlay for better text contrast */
.deals-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 0;
}

.deals-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 'none';
  z-index: 0;
}

.deals-hero-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  padding: 0;
  padding-left: 60px;
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.deals-hero-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
  opacity: 0.98;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.deals-hero h1 {
  font-size: 4.5rem;
  margin-bottom: 30px;
  font-weight: 900;
  line-height: 0.95;
  color: #FFFFFF;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.5);
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.deals-hero p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.7;
  color: #F0F0F0;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet responsive */
@media (max-width: 768px) {
  .deals-hero {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #8B6F47;
    background-attachment: scroll;
    min-height: 500px;
    padding: 60px 30px;
    justify-content: center;
  }

  .deals-hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .deals-hero p {
    font-size: 0.95rem;
  }

  .deals-hero-content {
    padding-left: 0;
    text-align: center;
    max-width: 100%;
  }

  .deals-hero-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .deals-hero {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #8B6F47;
    background-attachment: scroll;
    min-height: 400px;
    padding: 40px 20px;
    justify-content: center;
  }

  .deals-hero h1 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
  }

  .deals-hero p {
    font-size: 0.85rem;
  }

  .deals-hero-content {
    max-width: 100%;
    padding: 0;
    text-align: center;
  }

  .deals-hero-label {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
}

/* ============================================
   DEALS SECTION - CONTAINER
   ============================================ */

.deals-section {
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
}

.deals-section-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 0.6s ease-out;
}

.deals-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.deals-section-subtitle {
  font-size: 1.1rem;
  color: var(--medium-text);
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   DEALS GRID - RESPONSIVE LAYOUT
   ============================================ */

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  margin-bottom: 50px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

/* Tablet grid */
@media (max-width: 768px) {
  .deals-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
  }
}

/* Mobile grid */
@media (max-width: 480px) {
  .deals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
}

/* ============================================
   DEAL CARD - PREMIUM DESIGN
   ============================================ */

.deal-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.deal-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
}

.deal-card.featured {
  border: 2px solid var(--accent-gold);
  transform: scale(1.02);
}

.deal-card.featured:hover {
  transform: translateY(-12px) scale(1.02);
}

/* ============================================
   DEAL CARD HEADER
   ============================================ */

.deal-card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 24px 20px;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.deal-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.deal-card-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.deal-card-discount {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-gold);
  color: var(--primary-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.deal-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.deal-card-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   DEAL CARD BODY
   ============================================ */

.deal-card-body {
  padding: 24px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.deal-description {
  color: var(--dark-text);
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ============================================
   DEAL CARD DETAILS
   ============================================ */

.deal-details {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--medium-text);
  border-left: 4px solid var(--accent-blue);
}

.deal-details-item {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.deal-details-item:last-child {
  margin-bottom: 0;
}

.deal-details-item i {
  color: var(--accent-gold);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ============================================
   PROMO CODE
   ============================================ */

.deal-promo-code {
  background: linear-gradient(135deg, #E8F4F8 0%, #D0E8F0 100%);
  border: 2px dashed var(--accent-blue);
  padding: 14px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 18px;
  font-family: 'Courier New', monospace;
}

.deal-code-label {
  font-size: 0.75rem;
  color: var(--medium-text);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 1px;
}

.deal-code {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 2px;
  user-select: all;
}

/* ============================================
   DEAL CARD FOOTER - BUTTONS
   ============================================ */

.deal-card-footer {
  padding: 16px 20px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.deal-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.deal-btn i {
  font-size: 1rem;
}

/* Primary Button */
.deal-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 38, 53, 0.3);
}

.deal-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5B1820 100%);
  box-shadow: 0 6px 16px rgba(139, 38, 53, 0.4);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Secondary Button */
.deal-btn-secondary {
  background: white;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.deal-btn-secondary:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Mobile button adjustments */
@media (max-width: 480px) {
  .deal-card-footer {
    flex-direction: column;
    gap: 8px;
  }

  .deal-btn {
    width: 100%;
    min-width: auto;
  }
}

/* ============================================
   NO DEALS STATE
   ============================================ */

.no-deals {
  text-align: center;
  padding: 80px 20px;
  color: var(--medium-text);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}

.no-deals i {
  font-size: 4rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: block;
  opacity: 0.8;
}

.no-deals h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 800;
}

.no-deals p {
  font-size: 1rem;
  margin: 0;
}

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

@media (max-width: 768px) {
  .deals-section {
    margin: 40px auto;
    padding: 0 15px;
  }

  .deals-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .deals-section-header {
    margin-bottom: 35px;
  }

  .deal-card-header {
    padding: 20px 16px;
    min-height: 100px;
  }

  .deal-card-title {
    font-size: 1.2rem;
  }

  .deal-card-body {
    padding: 16px;
  }

  .deal-card-footer {
    padding: 12px 16px;
  }

  .deal-btn {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .deals-section {
    margin: 30px auto;
    padding: 0 12px;
  }

  .deals-section h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .deals-section-subtitle {
    font-size: 0.95rem;
  }

  .deal-card-header {
    padding: 16px;
    min-height: 90px;
  }

  .deal-card-discount {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .deal-card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .deal-card-body {
    padding: 14px;
  }

  .deal-description {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .deal-details {
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  .deal-promo-code {
    padding: 12px 10px;
    margin-bottom: 12px;
  }

  .deal-code {
    font-size: 1rem;
  }

  .no-deals {
    padding: 60px 15px;
  }

  .no-deals i {
    font-size: 3rem;
    margin-bottom: 15px;
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

.deal-card {
  animation: fadeInUp 0.6s ease-out;
}

.deal-card:nth-child(1) {
  animation-delay: 0s;
}

.deal-card:nth-child(2) {
  animation-delay: 0.1s;
}

.deal-card:nth-child(3) {
  animation-delay: 0.2s;
}

.deal-card:nth-child(4) {
  animation-delay: 0.3s;
}

.deal-card:nth-child(n+5) {
  animation-delay: 0.4s;
}

/* Smooth scrolling and transitions */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}
