/* ============================================================
   Reel Legends Ad System — CSS Additions
   APPEND these styles to the bottom of assets/css/main.css
   ============================================================ */

/* --- Landing page advertise button --- */
.home-btn-advertise {
  background: linear-gradient(90deg, #ff9800, #f57c00) !important;
  color: #fff !important;
  border-color: #e65100 !important;
  font-weight: 600;
}
.home-btn-advertise:hover {
  background: linear-gradient(90deg, #ffa726, #fb8c00) !important;
  color: #fff !important;
}
.home-advertise-panel {
  background: rgba(255, 248, 225, 0.97) !important;
  border-color: #ff9800 !important;
}

/* --- Ad card in tournament feed --- */
.ad-card-wrap {
  /* Same outer wrapper as .tourney-wrap so it fits the grid */
}
.ad-card {
  position: relative;
  background: linear-gradient(160deg, #1a2a3a, #0a1a2a);
  border: 2px solid #ff9800;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.ad-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff9800;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
  z-index: 2;
  text-transform: uppercase;
}
.ad-card-nearby {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #00BCD4;
  color: #0a2a3a;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 2;
}
.ad-card-photo {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #1a3a5a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-card-logo {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff9800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-card-body {
  padding: 30px 10px 8px;
  text-align: center;
  flex: 1;
}
.ad-card-bizname {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  color: #ff9800;
  font-weight: 700;
  margin-bottom: 3px;
}
.ad-card-tagline {
  font-size: 10px;
  color: #b2dfdb;
  margin-bottom: 3px;
}
.ad-card-city {
  font-size: 9px;
  color: #80cbc4;
}
.ad-card-cta {
  display: inline-block;
  background: #ff9800;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  margin-top: 6px;
  text-decoration: none;
}
.ad-card-cta:hover {
  background: #ffa726;
  color: #000;
  text-decoration: none;
}
.ad-card-band {
  background: linear-gradient(90deg, #7a4000, #b35800, #7a4000);
  padding: 7px;
  text-align: center;
}
.ad-card-band span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  color: #ffe0b2;
  font-style: italic;
}

/* --- Advertise pricing page --- */
.advertise-wrap {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 15px;
}
.advertise-wrap h2 {
  text-align: center;
  margin-bottom: 5px;
}
.advertise-wrap .advertise-sub {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-size: 15px;
}
.code-entry-box {
  background: rgba(255,255,255,0.95);
  border: 1.5px solid #00BCD4;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.code-entry-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  background: transparent;
}
.code-entry-box button {
  background: #00BCD4;
  color: #0a2a3a;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.plans-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.plan-box {
  background: rgba(255,255,255,0.95);
  border: 2px solid #c9a227;
  border-radius: 12px;
  padding: 18px;
  width: 160px;
  text-align: center;
}
.plan-box.popular {
  border-color: #ff9800;
}
.plan-box .plan-popular-lbl {
  background: #ff9800;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  display: inline-block;
}
.plan-box .plan-name {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.plan-box .plan-price {
  font-size: 32px;
  font-weight: 700;
  color: #255442;
  line-height: 1;
}
.plan-box .plan-period {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
}
.plan-box .plan-features {
  font-size: 11px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 12px;
  text-align: left;
}
.plan-box .btn-plan {
  width: 100%;
  background: #255442;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.plan-box.popular .btn-plan {
  background: #ff9800;
  color: #000;
}
.sponsor-tourney-box {
  background: rgba(255,255,255,0.95);
  border: 2px dashed #ff9800;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}
.sponsor-tourney-box h4 {
  color: #f57c00;
  margin-bottom: 6px;
}
.sponsor-tourney-box p {
  font-size: 13px;
  color: #555;
  margin-bottom: 14px;
}
.sponsor-tourney-item {
  background: #fff8f0;
  border: 1px solid #ffcc80;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sponsor-tourney-item .st-name {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  display: block;
}
.sponsor-tourney-item .st-meta {
  font-size: 11px;
  color: #888;
  display: block;
}
.sponsor-tourney-item .st-price {
  font-size: 16px;
  font-weight: 700;
  color: #f57c00;
}
.sponsor-tourney-item .btn-sponsor {
  background: #ff9800;
  color: #000;
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* --- New tournament allow sponsors section --- */
.allow-sponsors-section {
  margin-top: 12px;
}
.sponsor-price-field {
  display: none;
  margin-top: 10px;
  background: rgba(255, 248, 225, 0.8);
  border: 1px solid #ff9800;
  border-radius: 8px;
  padding: 10px 14px;
}
.sponsor-price-field label {
  font-size: 13px;
  color: #e65100;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* --- Admin ad system pages --- */
.admin-ad-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.admin-ad-section h4 {
  color: #255442;
  border-bottom: 2px solid #00BCD4;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.default-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.dp-field label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.sp-list-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.sp-code-pill {
  background: #255442;
  color: #f5d78a;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: monospace;
  letter-spacing: 1px;
}
.sp-active-pill {
  background: #e8f5e9;
  color: #255442;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}
