/* ==========================================
   STYLE.CSS - ADDITIONAL STYLES
   FOR ABOUT, CONTACT, LOGIN, PROFILE PAGES
   USING FLEXBOX ONLY (NO CSS GRID)
   ========================================== */

/* This file contains styles used by about.html, contact.html, 
   login.html, and profile.html pages */

/* ============ UTILITY CLASSES ============ */
.text-center {
  text-align: center;
}

.text-white {
  color: #fff;
}

.text-gray {
  color: #666;
}

.text-primary {
  color: var(--primary-color);
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mb-1-5 {
  margin-bottom: 1.5rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.my-1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.p-1 {
  padding: 1rem;
}

.p-2 {
  padding: 2rem;
}

/* ============ SECTION BACKGROUNDS ============ */
.section-light-bg {
  background-color: #f5f5f5;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  padding: 2rem;
  border-radius: 8px;
}

.bg-blue-gradient {
  background: linear-gradient(135deg, #3498db, #2980b9);
  padding: 2rem;
  border-radius: 8px;
}

.text-white-muted-light {
  color: rgba(255, 255, 255, 0.9);
}

/* ============ ICON STYLES ============ */
.icon-xl {
  font-size: 3rem;
}

.icon-lg {
  font-size: 2rem;
}

/* ============ CARDS ============ */
.card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============ PRICING CARDS ============ */
.pricing-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border: 3px solid #2ecc71;
  transform: scale(1.05);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ============ BADGES ============ */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-bronze {
  background: linear-gradient(135deg, #d4531a, #c44a17);
  color: #fff;
}

.badge-silver {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  color: #fff;
}

.badge-gold {
  background: linear-gradient(135deg, #ffd700, #e6c200);
  color: #fff;
}

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2ecc71;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============ LOGIN/REGISTER FORMS ============ */
.auth-container {
  max-width: 450px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.auth-card {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.auth-header p {
  color: #666;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  background: #fff;
  padding: 0 1rem;
  position: relative;
  color: #666;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
}

/* ============ PROFILE PAGE ============ */
.profile-header {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  color: #2ecc71;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.profile-section {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.profile-section h2 {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.profile-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.profile-info-item {
  flex: 1 1 calc(50% - 1.5rem);
  min-width: 200px;
}

.profile-info-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.profile-info-value {
  font-size: 1.1rem;
  color: #1a1a1a;
}

/* ============ ORDER HISTORY ============ */
.order-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.order-card:hover {
  border-color: #2ecc71;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.order-status-delivered {
  background: #d4edda;
  color: #155724;
}

.order-status-processing {
  background: #fff3cd;
  color: #856404;
}

.order-status-shipped {
  background: #d1ecf1;
  color: #0c5460;
}

/* ============ CONTACT PAGE ============ */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-form {
  flex: 1 1 500px;
}

.contact-info {
  flex: 1 1 350px;
}

.contact-info-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.contact-info-card h3 {
  margin-bottom: 1rem;
  color: #2ecc71;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: #2ecc71;
}

/* ============ ABOUT PAGE ============ */
.about-hero {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-member {
  flex: 1 1 calc(25% - 2rem);
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.team-name {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}

.team-role {
  color: #2ecc71;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-bio {
  color: #666;
  font-size: 0.9rem;
}

/* ============ TIMELINE ============ */
.timeline {
  margin: 3rem 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-year {
  flex-shrink: 0;
  width: 100px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2ecc71;
}

.timeline-content {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

/* ============ STATS ============ */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  flex: 1 1 calc(25% - 2rem);
  min-width: 200px;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #2ecc71;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 1.1rem;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
  .profile-info-item {
    flex: 1 1 100%;
  }

  .contact-container {
    flex-direction: column;
  }

  .team-member {
    flex: 1 1 calc(50% - 2rem);
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-year {
    width: auto;
  }

  .stat-card {
    flex: 1 1 calc(50% - 2rem);
  }

  .auth-container {
    margin: 2rem auto;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .team-member {
    flex: 1 1 100%;
  }

  .stat-card {
    flex: 1 1 100%;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============ BUTTON VARIATIONS ============ */
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-outline {
  background: transparent;
  border: 2px solid #2ecc71;
  color: #2ecc71;
}

.btn-outline:hover {
  background: #2ecc71;
  color: #fff;
}

.btn-secondary {
  background: #34495e;
  color: #fff;
}

.btn-secondary:hover {
  background: #2c3e50;
}

/* ============ ALERTS ============ */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* ============ TABLES ============ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #1a1a1a;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: #f9f9f9;
}

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.tab {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab:hover {
  color: #2ecc71;
}

.tab.active {
  color: #2ecc71;
  border-bottom-color: #2ecc71;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
