/* style/promotions-refer-friend.css */

/* Variables */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --dark-text-color: #333333;
  --light-text-color: #FFFFFF;
  --background-light: #f8f9fa;
  --background-dark: #212529;
  --border-color: #dee2e6;
}

.page-promotions-refer-friend {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-text-color);
  background-color: var(--background-light);
}

.page-promotions-refer-friend__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions-refer-friend__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions-refer-friend__section-description {
  font-size: 1.1em;
  color: var(--dark-text-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-refer-friend__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.page-promotions-refer-friend__btn--primary {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: 2px solid var(--primary-color);
}

.page-promotions-refer-friend__btn--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-promotions-refer-friend__btn--secondary {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border: 2px solid var(--secondary-color);
}

.page-promotions-refer-friend__btn--secondary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
}

/* Hero Section */
.page-promotions-refer-friend__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--light-text-color);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-promotions-refer-friend__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:abstract_pattern,gaming,light_effect]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-promotions-refer-friend__hero-section > .page-promotions-refer-friend__container {
  position: relative;
  z-index: 1;
}

.page-promotions-refer-friend__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--light-text-color);
}

.page-promotions-refer-friend__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-refer-friend__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-promotions-refer-friend__hero-image {
  max-width: 70%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

/* Benefits Section */
.page-promotions-refer-friend__benefits-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-promotions-refer-friend__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions-refer-friend__benefit-item {
  background-color: var(--light-text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-promotions-refer-friend__benefit-item:hover {
  transform: translateY(-5px);
}

.page-promotions-refer-friend__benefit-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
}

.page-promotions-refer-friend__benefit-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions-refer-friend__benefit-text {
  font-size: 1em;
  color: var(--dark-text-color);
}

/* How It Works Section */
.page-promotions-refer-friend__how-it-works-section {
  padding: 80px 0;
  background-color: #e9ecef;
}

.page-promotions-refer-friend__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions-refer-friend__step-item {
  background-color: var(--light-text-color);
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

.page-promotions-refer-friend__step-number {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions-refer-friend__step-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions-refer-friend__step-text {
  font-size: 1em;
  color: var(--dark-text-color);
  margin-bottom: 15px;
}

.page-promotions-refer-friend__link-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promotions-refer-friend__link-text:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-promotions-refer-friend__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Rewards Breakdown Section */
.page-promotions-refer-friend__rewards-breakdown-section {
  padding: 80px 0;
  background-color: var(--light-text-color);
}

.page-promotions-refer-friend__reward-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto 40px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.page-promotions-refer-friend__table-header,
.page-promotions-refer-friend__table-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.page-promotions-refer-friend__table-header {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  font-weight: bold;
  font-size: 1.1em;
}

.page-promotions-refer-friend__table-row:nth-child(even) {
  background-color: #f2f2f2;
}

.page-promotions-refer-friend__table-row:last-child {
  border-bottom: none;
}

.page-promotions-refer-friend__note {
  text-align: center;
  font-style: italic;
  color: #6c757d;
  margin-top: 20px;
  margin-bottom: 40px;
}

.page-promotions-refer-friend__rewards-image {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tips Section */
.page-promotions-refer-friend__tips-section {
  padding: 80px 0;
  background-color: #e9ecef;
}

.page-promotions-refer-friend__tip-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
}

.page-promotions-refer-friend__tip-list li {
  background-color: var(--light-text-color);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid var(--secondary-color);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: var(--dark-text-color);
  line-height: 1.8;
}

.page-promotions-refer-friend__tip-highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-promotions-refer-friend__tips-image {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-promotions-refer-friend__faq-section {
  padding: 80px 0;
  background-color: var(--light-text-color);
}

.page-promotions-refer-friend__faq-item {
  background-color: #fdfdfd;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions-refer-friend__faq-question {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-promotions-refer-friend__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-promotions-refer-friend__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-promotions-refer-friend__faq-answer {
  font-size: 1em;
  color: var(--dark-text-color);
  margin-bottom: 0;
  display: none;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: 15px;
}

.page-promotions-refer-friend__faq-answer.active {
  display: block;
}

/* CTA Bottom Section */
.page-promotions-refer-friend__cta-bottom-section {
  background: linear-gradient(45deg, #0056b3 0%, var(--primary-color) 100%);
  color: var(--light-text-color);
  padding: 70px 0;
  text-align: center;
}

.page-promotions-refer-friend__cta-bottom-section .page-promotions-refer-friend__section-title,
.page-promotions-refer-friend__cta-bottom-section .page-promotions-refer-friend__section-description {
  color: var(--light-text-color);
}

.page-promotions-refer-friend__cta-bottom-section .page-promotions-refer-friend__cta-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions-refer-friend__hero-title {
    font-size: 2.8em;
  }
  .page-promotions-refer-friend__section-title {
    font-size: 2em;
  }
  .page-promotions-refer-friend__rewards-image {
    max-width: 90%;
  }
  .page-promotions-refer-friend__tips-image {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-promotions-refer-friend__hero-section {
    padding: 60px 0;
  }
  .page-promotions-refer-friend__hero-title {
    font-size: 2.2em;
  }
  .page-promotions-refer-friend__hero-subtitle {
    font-size: 1.1em;
  }
  .page-promotions-refer-friend__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions-refer-friend__btn {
    width: 80%;
    margin: 0 auto;
  }
  .page-promotions-refer-friend__hero-image {
    max-width: 90%;
  }
  .page-promotions-refer-friend__section-title {
    font-size: 1.8em;
  }
  .page-promotions-refer-friend__section-description {
    font-size: 1em;
  }
  .page-promotions-refer-friend__table-header,
  .page-promotions-refer-friend__table-row {
    grid-template-columns: 1fr;
    text-align: left;
    border-bottom: none;
    padding: 10px 15px;
  }
  .page-promotions-refer-friend__table-header span,
  .page-promotions-refer-friend__table-row span {
    padding: 5px 0;
  }
  .page-promotions-refer-friend__table-header {
    display: none; /* Hide header on small screens */
  }
  .page-promotions-refer-friend__table-row {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  .page-promotions-refer-friend__table-row span:nth-child(1)::before { content: 'Số lượng: '; font-weight: bold; color: var(--primary-color); }
  .page-promotions-refer-friend__table-row span:nth-child(2)::before { content: 'Thưởng người giới thiệu: '; font-weight: bold; color: var(--primary-color); }
  .page-promotions-refer-friend__table-row span:nth-child(3)::before { content: 'Thưởng người được giới thiệu: '; font-weight: bold; color: var(--primary-color); }

  .page-promotions-refer-friend__reward-table {
    box-shadow: none;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .page-promotions-refer-friend__hero-title {
    font-size: 1.8em;
  }
  .page-promotions-refer-friend__section-title {
    font-size: 1.5em;
  }
  .page-promotions-refer-friend__btn {
    width: 95%;
    padding: 10px 20px;
  }
  .page-promotions-refer-friend__hero-image {
    max-width: 100%;
  }
  .page-promotions-refer-friend__faq-question {
    font-size: 1.2em;
  }
  .page-promotions-refer-friend__benefit-title {
    font-size: 1.3em;
  }
  .page-promotions-refer-friend__step-title {
    font-size: 1.4em;
  }
}