/* OffSec platform specific styles */

/* Breadcrumb styling */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

/* Platform Hero */
.platform-hero {
  padding: 40px 0;
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.platform-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.platform-details h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 8px 40px rgba(110, 255, 214, 0.1);
}

.platform-details p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.platform-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.seller-count {
  background: rgba(110, 255, 214, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.price-range {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

/* Vouchers Listing */
.vouchers-listing {
  margin-top: 32px;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.listing-header h2 {
  margin: 0;
  color: var(--text);
}

.filter-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: var(--accent);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(110, 255, 214, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* Voucher Listings */
.voucher-listings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.voucher-listing {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.voucher-listing:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(110, 255, 214, 0.1);
  transform: translateY(-2px);
}

/* Seller Info */
.seller-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 255, 214, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.seller-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.seller-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #ffd700;
  font-size: 0.9rem;
}

.rating-text {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Voucher Details */
.voucher-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voucher-type {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.voucher-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Voucher Price */
.voucher-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  text-shadow: 0 4px 20px rgba(110, 255, 214, 0.2);
}

/* Purchase Button */
.voucher-listing .btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(110, 255, 214, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.voucher-listing .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.voucher-listing .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 255, 214, 0.4);
  filter: brightness(1.1);
}

.voucher-listing .btn:hover::before {
  left: 100%;
}

.voucher-listing .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(110, 255, 214, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .voucher-listing {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .voucher-price {
    grid-column: 1;
    text-align: left;
  }
  
  .voucher-listing .btn {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .platform-info {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .platform-details h1 {
    font-size: 2rem;
  }
  
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .voucher-listing {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  
  .seller-info {
    justify-content: center;
  }
  
  .voucher-price {
    text-align: center;
  }
  
  .voucher-listing .btn {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .platform-details h1 {
    font-size: 1.8rem;
  }
  
  .platform-details p {
    font-size: 1rem;
  }
  
  .platform-stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .voucher-listing {
    padding: 16px;
  }
  
  .seller-avatar {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
  
  .voucher-price {
    font-size: 1.3rem;
  }
}
