/* ============================================================================
   www-resellers.css
   Resellers page styling with BEM methodology
   ========================================================================== */

/* Hero Section */
.bloo-www-resellers__hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bloo-www-resellers__hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.bloo-www-resellers__hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
}

.bloo-www-resellers__hero .bloo-hero__content {
  position: relative;
  z-index: 1;
}

.bloo-www-resellers__hero .bloo-hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.bloo-www-resellers__hero .bloo-hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
}

@media (max-width: 768px) {
  .bloo-www-resellers__hero {
    padding: 4rem 1.5rem;
  }

  .bloo-www-resellers__hero .bloo-hero__title {
    font-size: 2rem;
  }

  .bloo-www-resellers__hero .bloo-hero__subtitle {
    font-size: 1.125rem;
  }
}

/* Advantages Section */
.bloo-www-resellers__advantages {
  background-color: #f8f9fa;
}

.bloo-www-resellers__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.bloo-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.bloo-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.bloo-card__icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.bloo-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a202c;
}

.bloo-card__content {
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95rem;
}

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

.bloo-slide-up {
  animation: slideUp 0.5s ease forwards;
}

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

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

/* Commission Tiers Section */
.bloo-www-resellers__tiers {
  background-color: white;
}

.bloo-www-resellers__tiers-table {
  margin-top: 3rem;
  overflow-x: auto;
}

.bloo-tiers-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.bloo-tiers-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e2e8f0;
}

.bloo-tiers-table th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #1a202c;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bloo-tiers-table td {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.bloo-tiers-table__row {
  transition: background-color 0.2s ease;
}

.bloo-tiers-table__row:hover {
  background-color: #f8f9fa;
}

.bloo-tier-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bloo-tier-badge--silver {
  background-color: #e8eef7;
  color: #4c63a8;
}

.bloo-tier-badge--gold {
  background-color: #fef3c7;
  color: #92400e;
}

.bloo-tier-badge--platinum {
  background-color: #dbeafe;
  color: #0c4a6e;
}

.bloo-tier-rate {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bloo-tier-rate__value {
  font-weight: 700;
  font-size: 1.5rem;
  color: #667eea;
  min-width: 60px;
}

.bloo-tier-rate__bar {
  height: 6px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  min-width: 100px;
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .bloo-tiers-table th,
  .bloo-tiers-table td {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
  }

  .bloo-tier-rate {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bloo-tier-rate__bar {
    min-width: 150px;
  }
}

/* Steps Section */
.bloo-www-resellers__steps {
  background-color: #f8f9fa;
}

.bloo-www-resellers__steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.bloo-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.bloo-step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transition: all 0.3s ease;
}

.bloo-step:hover .bloo-step__icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.bloo-step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a202c;
}

.bloo-step__content {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
}

.bloo-step__connector {
  position: absolute;
  top: 40px;
  left: -1rem;
  right: -1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea 20%, #667eea 80%, transparent);
  z-index: 0;
}

.bloo-step:last-child .bloo-step__connector {
  display: none;
}

@media (max-width: 1024px) {
  .bloo-www-resellers__steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .bloo-step__connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .bloo-www-resellers__steps-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bloo-step {
    padding: 2rem 1rem;
  }

  .bloo-step__icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

/* Form Section */
.bloo-www-resellers__form-section {
  background-color: white;
}

.bloo-www-resellers__form {
  max-width: 700px;
  margin: 3rem auto;
}

.bloo-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.bloo-form__group {
  display: flex;
  flex-direction: column;
}

.bloo-form__label {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a202c;
  font-size: 0.95rem;
}

.bloo-form__input,
.bloo-form__select,
.bloo-form__textarea {
  padding: 0.875rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: white;
}

.bloo-form__input:focus,
.bloo-form__select:focus,
.bloo-form__textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bloo-form__input::placeholder {
  color: #a0aec0;
}

.bloo-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.bloo-form__error {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.bloo-form__input:invalid ~ .bloo-form__error,
.bloo-form__input.bloo-form__input--error ~ .bloo-form__error {
  display: block;
}

.bloo-form__group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.bloo-form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.bloo-form__checkbox-label {
  font-weight: 400;
  color: #4a5568;
  line-height: 1.5;
  cursor: pointer;
  font-size: 0.95rem;
}

.bloo-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bloo-form__message {
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
  font-weight: 500;
}

.bloo-form__message--success {
  background-color: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.bloo-form__message--error {
  background-color: #fed7d7;
  color: #742a2a;
  border: 1px solid #fc8181;
}

@media (max-width: 768px) {
  .bloo-form__row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bloo-www-resellers__form {
    margin: 2rem 0;
  }
}

/* FAQ Section */
.bloo-www-resellers__faq {
  background-color: #f8f9fa;
}

.bloo-faq {
  max-width: 800px;
  margin: 3rem auto;
}

.bloo-faq__item {
  margin-bottom: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.bloo-faq__item.bloo-faq__item--active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bloo-faq__trigger {
  width: 100%;
  padding: 1.5rem;
  background: white;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.bloo-faq__trigger:hover {
  background-color: #f8f9fa;
  color: #667eea;
}

.bloo-faq__trigger::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  color: #667eea;
}

.bloo-faq__item.bloo-faq__item--active .bloo-faq__trigger::after {
  transform: rotate(180deg);
}

.bloo-faq__content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.bloo-faq__item.bloo-faq__item--active .bloo-faq__content {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.bloo-faq__content p {
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .bloo-faq {
    max-width: 100%;
  }

  .bloo-faq__trigger {
    padding: 1.25rem;
    font-size: 0.95rem;
  }

  .bloo-faq__content {
    padding: 0 1.25rem;
  }

  .bloo-faq__item.bloo-faq__item--active .bloo-faq__content {
    padding: 0 1.25rem 1.25rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bloo-www-resellers {
    background-color: #1a202c;
    color: #e2e8f0;
  }

  .bloo-www-resellers__advantages {
    background-color: #2d3748;
  }

  .bloo-card {
    background: #2d3748;
    color: #e2e8f0;
  }

  .bloo-card__title {
    color: #f7fafc;
  }

  .bloo-card__content {
    color: #cbd5e0;
  }

  .bloo-www-resellers__steps {
    background-color: #2d3748;
  }

  .bloo-step {
    color: #e2e8f0;
  }

  .bloo-step__title {
    color: #f7fafc;
  }

  .bloo-step__content {
    color: #cbd5e0;
  }

  .bloo-step__icon {
    background: #1a202c;
  }

  .bloo-tiers-table thead {
    background-color: #2d3748;
    border-bottom-color: #4a5568;
  }

  .bloo-tiers-table th {
    color: #f7fafc;
  }

  .bloo-tiers-table td {
    border-bottom-color: #4a5568;
    color: #cbd5e0;
  }

  .bloo-tiers-table__row:hover {
    background-color: #2d3748;
  }

  .bloo-form__input,
  .bloo-form__select,
  .bloo-form__textarea {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .bloo-form__label {
    color: #f7fafc;
  }

  .bloo-form__input::placeholder {
    color: #718096;
  }

  .bloo-www-resellers__faq {
    background-color: #2d3748;
  }

  .bloo-faq__item {
    background: #1a202c;
  }

  .bloo-faq__trigger {
    background: #1a202c;
    color: #f7fafc;
  }

  .bloo-faq__trigger:hover {
    background-color: #2d3748;
  }

  .bloo-faq__content p {
    color: #cbd5e0;
  }

  .bloo-tiers-table {
    background: #1a202c;
  }
}
