/* My Account Page Specific Styles */

/* Account Hero Section */
.account-hero {
  background: var(--sqube-red);
  position: relative;
  overflow: hidden;
}

.account-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

/* Sidebar Navigation */
.account-nav-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.account-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 0, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.account-nav-item:hover::before {
  left: 100%;
}

.account-nav-item:hover {
  background: var(--sqube-cream);
  transform: translateX(4px);
}

.account-nav-item.active {
  background: var(--sqube-red);
  color: white;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(138, 0, 0, 0.3);
}

.account-nav-item.active::before {
  display: none;
}

/* Content Tabs */
.account-content {
  transition: all 0.3s ease;
}

.account-content.hidden {
  display: none;
}

/* Quick Stats Cards */
.quick-stats-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-stats-card::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 ease;
}

.quick-stats-card:hover::before {
  left: 100%;
}

.quick-stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Order Cards */
.order-card {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.order-card:hover {
  border-left-color: var(--sqube-red);
  transform: translateX(4px);
  background: #f9fafb;
}

/* Profile Form */
.profile-form input {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.profile-form input:focus {
  border-color: var(--sqube-red);
  box-shadow: 0 0 0 3px rgba(138, 0, 0, 0.1);
  transform: translateY(-1px);
}

.profile-form button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-form button::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 ease;
}

.profile-form button:hover::before {
  left: 100%;
}

.profile-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 0, 0, 0.3);
}

/* Wishlist Items */
.wishlist-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wishlist-item::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 ease;
}

.wishlist-item:hover::before {
  left: 100%;
}

.wishlist-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Address Cards */
.address-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.address-card:hover {
  border-color: var(--sqube-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Settings Checkboxes */
.settings-checkbox {
  transition: all 0.3s ease;
}

.settings-checkbox input[type="checkbox"] {
  accent-color: var(--sqube-red);
}

.settings-checkbox:hover {
  background: var(--sqube-cream);
  transform: translateX(4px);
}

/* Action Buttons */
.action-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-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 ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Status Indicators */
.status-verified {
  color: var(--sqube-green);
  font-weight: 600;
}

.status-pending {
  color: var(--sqube-orange);
  font-weight: 600;
}

.status-disabled {
  color: #6b7280;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .account-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .account-sidebar .sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .account-hero {
    padding: 3rem 0;
  }

  .account-hero h1 {
    font-size: 2rem;
  }

  .quick-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .order-card {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .account-content {
    background: #1f2937;
    color: #e5e7eb;
  }

  .account-nav-item {
    color: #d1d5db;
  }

  .account-nav-item:hover {
    background: #374151;
  }

  .account-nav-item.active {
    background: var(--primary);
    color: white;
  }

  .quick-stats-card {
    background: #1f2937;
    border: 1px solid #374151;
  }

  .order-card {
    background: #1f2937;
    border-color: #374151;
  }

  .order-card:hover {
    background: #111827;
  }
}

/* Print Styles */
@media print {
  .account-sidebar {
    display: none;
  }

  .account-content {
    width: 100%;
  }

  .action-btn {
    display: none;
  }

  .account-hero {
    background: none;
    color: #000;
  }
}
