/*
Theme Name: Deals Horizontal Theme
Theme URI: https://example.com/
Author: Your Name
Description: Clean horizontal compact deals theme inspired by Deals by Austin.
Version: 1.0
*/

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f6f8fa;
  margin: 0;
  padding: 2px;
  color: #333;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

.date-section {
  margin: 2px auto;
  max-width: 800px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e0e2e3;
  color: rgb(92, 91, 91);
  padding: 12px 16px;
  font-size: 1.1em;
  border-radius: 8px 8px 8px 8px;
  cursor: pointer;
}

.toggle-btn {
  font-size: 1.3em;
}

.deal-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px;
  background-color: #ededf0;
}

.deal-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 6px;
  border: 1px solid #eee;
  padding: 1px;
  gap: 12px;
  transition: box-shadow 0.2s;
}

.deal-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.deal-img {
  flex: 0 0 80px;
  position: relative;
}

.deal-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.deal-img .rating {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: green;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deal-img .rating .star {
  color: gold;
}

.deal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-title {
  font-size: 1em;
  font-weight: bold;
  margin: 0 0 4px;
  color: #0e0e0e;
  text-align: left;
}

.deal-desc {
  font-size: 0.9em;
  margin-bottom: 6px;
  color: #444;
  text-align: left;
}

.discount-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.badge-discount {
  display: inline-block;
  background: green;
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 4px;
  white-space: nowrap;
  margin-right: 6px;
}

.code-box {
  display: inline-flex;
  align-items: center;
  background-color: #e4e2e2;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: lighter;
  color: #1a1919;
  white-space: nowrap;
  max-width: fit-content;
  gap: 4px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.2s;
}

.code-box:hover {
  background: #e0e0e0;
}

.code-box span:first-child {
  color: #000;
  margin-right: 8px;
  flex-shrink: 0;
}

.code-status {
  font-size: 0.75rem;
  color: green;
  margin-left: 8px;
}

.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-grab {
  background: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-grab:hover {
  background: #c0392b;
}

.btn-share {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.btn-share svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .discount-code-row {
    flex-direction: row;
    justify-content: flex-start;
  }

  .code-box {
    flex: none;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75em;
    padding: 4px 6px;
  }

  .bottom-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .badge-discount,
  .btn-grab,
  .btn-share {
    font-size: 0.75em;
    padding: 4px 6px;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.hero-section {
  background: #3238a8;
  color: white;
  text-align: center;
  padding: 20px 2px;
  border-radius: 0 0 12px 12px;
  max-width: 800px;
  margin: 0 auto; /* center it */
}

.hero-section h1 {
  margin: 0;
  font-size: 1.8em;
  color: white;
}

.hero-section p {
  margin: 10px 0;
  font-size: 1em;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.search-box {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.search-box input {
  padding: 10px;
  font-size: 1em;
  border-radius: 20px 0 0 20px;
  border: none;
  width: 280px;
}

.search-box button {
  padding: 10px;
  background: #f1f1f1;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

.prime-day-banner {
  background: #f7f5ff;
  border: 2px dashed #915eff;
  padding: 16px;
  margin: 20px auto;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
}

.prime-day-banner h2 {
  margin: 0 0 10px;
  font-size: 1.5em;
  color: #512da8;
}

.prime-day-banner p {
  font-size: 1em;
  color: #333;
  margin-bottom: 16px;
}

.btn-prime-scroll {
  background-color: #ff9900;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-prime-scroll:hover {
  background-color: #e88a00;
}
