/* Store-specific styles following the index.html color scheme */

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #001e48;
  background: linear-gradient(135deg, #001e48 0%, #175059 50%, #823311 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  background-color: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(130, 51, 17, 0.1);
  border: 3px solid #faeac3;
}

header h1 {
  font-family: 'Luckiest Guy', Arial Black, Arial, sans-serif;
  font-size: 2.5rem;
  color: #001e48;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #faeac3;
}

header p {
  color: #175059;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.user-info {
  margin-top: 20px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.current-plan {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.9rem;
}

.tokens {
  color: #823311;
  font-weight: bold;
}

/* Store Sections */
.store-section {
  margin-bottom: 40px;
}

.store-section h2 {
  font-family: 'Luckiest Guy', Arial Black, Arial, sans-serif;
  font-size: 2rem;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-description {
  text-align: center;
  color: #faeac3;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Current Plan Section */
.current-plan-section {
  margin-bottom: 40px;
}

.current-plan-section h2 {
  font-family: 'Luckiest Guy', Arial Black, Arial, sans-serif;
  font-size: 2rem;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.plan-card.current {
  background: linear-gradient(135deg, #faeac3 0%, #f5e6b3 100%);
  border: 3px solid #823311;
  max-width: 400px;
  margin: 0 auto;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.products-grid.subscriptions {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.products-grid.card-packs {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Product Cards */
.product-card {
  background-color: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(130, 51, 17, 0.1);
  border: 2px solid #faeac3;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(130, 51, 17, 0.15);
}

.product-card.popular {
  border: 3px solid #823311;
  transform: scale(1.05);
}

.product-card.best-value {
  border: 3px solid #175059;
}

.product-card.enterprise {
  border: 3px solid #001e48;
}

.product-card.locked {
  opacity: 0.7;
  position: relative;
}

.lock-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  z-index: 2;
}

/* Badges */
.popular-badge, .best-value-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: #823311;
  color: white;
  padding: 5px 15px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.best-value-badge {
  background: #175059;
}

/* Product Headers */
.product-header {
  text-align: center;
  margin-bottom: 20px;
}

.product-header h3 {
  font-family: 'Luckiest Guy', Arial Black, Arial, sans-serif;
  font-size: 1.5rem;
  color: #001e48;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #823311;
}

.product-price span {
  font-size: 1rem;
  color: #666;
}

.pack-status {
  background: #4CAF50;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.pack-status.unlocked {
  background: #4CAF50;
}

/* Product Content */
.token-amount {
  font-size: 1.4rem;
  font-weight: bold;
  color: #001e48;
  text-align: center;
  margin-bottom: 5px;
}

.value-note {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.subscription-features, .pack-features {
  margin-bottom: 20px;
}

.subscription-features .feature, .pack-features .feature {
  padding: 8px 0;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.subscription-features .feature:last-child, .pack-features .feature:last-child {
  border-bottom: none;
}

.pack-description {
  margin-bottom: 15px;
}

.pack-description p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Plan Card Features */
.plan-features {
  margin-bottom: 20px;
}

.plan-features .feature {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(130, 51, 17, 0.2);
}

.plan-features .feature:last-child {
  border-bottom: none;
}

.feature-label {
  color: #001e48;
  font-weight: 500;
}

.plan-status {
  text-align: center;
  color: #175059;
  font-weight: bold;
}

/* Buttons */
.btn-purchase, .btn-included {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-purchase {
  background: linear-gradient(135deg, #823311, #a04419);
  color: white;
}

.btn-purchase:hover {
  background: linear-gradient(135deg, #a04419, #823311);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(130, 51, 17, 0.3);
}

.btn-included {
  background: #f0f0f0;
  color: #666;
  cursor: not-allowed;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border: 3px solid #faeac3;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: #823311;
}

.modal-content h2 {
  font-family: 'Luckiest Guy', Arial Black, Arial, sans-serif;
  color: #001e48;
  margin-bottom: 20px;
  text-align: center;
}

.purchase-total {
  text-align: center;
  font-size: 1.5rem;
  color: #823311;
  margin: 20px 0;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.modal-actions .btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #823311, #a04419);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a04419, #823311);
}

.btn-secondary {
  background: #f0f0f0;
  color: #666;
  border: 2px solid #ddd;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Navigation Links */
.navigation-links {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
}

.navigation-links a {
  color: #faeac3;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navigation-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Messages */
.spinner, .error-message, .success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 1001;
  font-weight: bold;
}

.spinner {
  background: #175059;
  color: white;
}

.error-message {
  background: #d32f2f;
  color: white;
}

.success-message {
  background: #4CAF50;
  color: white;
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .current-plan {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-content {
    margin: 20px;
    padding: 20px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}
