/* ============================================
   CLEARLI AUTHENTICATION PAGES STYLING
   ============================================
   Matches the hero landing page design:
   - Radial gradient green backgrounds
   - quick-gaseous font family
   - White text with green shadows
   - Glassmorphism cards
   - Smooth transitions
   ============================================ */

/* ============================================
   BASE STYLES & RESET
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================
   AUTH PAGE CONTAINER
   ============================================ */
.auth-page {
  min-height: 100vh;
  background: radial-gradient(rgb(74, 138, 74) 30%, rgb(0, 61, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* ============================================
   AUTH CARD - Glassmorphism Container
   ============================================ */
.auth-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 2.5rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease;
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  will-change: transform, opacity;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* ============================================
   AUTH HEADER
   ============================================ */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-family: 'quick-gaseous', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 100;
  font-style: italic;
  letter-spacing: -2px;
  color: rgb(255, 255, 255);
  text-shadow: 4px 2px 3px #000000;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  text-decoration: wavy underline 2px;
  text-underline-offset: 6px;
}

.auth-subtitle {
  font-family: 'quick-gaseous', monospace;
  font-size: 1rem;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ============================================
   FORM STYLES
   ============================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'quick-gaseous', monospace;
  font-size: 0.95rem;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.5px;
}

.form-input {
  font-family: 'quick-gaseous', monospace;
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: rgb(255, 255, 255);
  transition: all 0.3s ease;
  outline: none;
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform, background, border-color;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'quick-gaseous', monospace;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   PASSWORD TOGGLE
   ============================================ */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.password-toggle:hover {
  color: rgb(255, 255, 255);
}

/* ============================================
   BUTTONS
   ============================================ */
.auth-button {
  font-family: 'quick-gaseous', monospace;
  font-size: 1.15rem;
  font-weight: 100;
  font-style: italic;
  padding: 1rem 2rem;
  background: rgb(0, 52, 5);
  color: #ffffff;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 94, 9, 0.4);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, background, box-shadow;
}

.auth-button:hover {
  background: rgb(255, 255, 255);
  color: #004818;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Google OAuth Button */
.google-button {
  background: rgba(255, 255, 255, 0.95);
  color: #004818;
  text-decoration: underline;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 100;
}

.google-button:hover {
  background: rgb(255, 255, 255);
  color: #000;
  transform: translateY(-4px);
  transition: .15s ease;
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'quick-gaseous', monospace;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.divider span {
  padding: 0 1rem;
}

/* ============================================
   LINKS
   ============================================ */
.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-link {
  font-family: 'quick-gaseous', monospace;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

.auth-link-primary {
  color: rgb(255, 255, 255);
  font-weight: 100;
  font-size: 1rem;
}

/* ============================================
   ERROR & SUCCESS MESSAGES
   ============================================ */
.message {
  padding: 1rem;
  border-radius: 10px;
  font-family: 'quick-gaseous', monospace;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateZ(0);
  }
}

.message-error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: rgb(255, 200, 200);
}

.message-success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: rgb(200, 255, 200);
}

.message-info {
  background: rgba(33, 150, 243, 0.2);
  border: 1px solid rgba(33, 150, 243, 0.5);
  color: rgb(200, 230, 255);
}

/* ============================================
   HEALTH GOALS SELECTION (Onboarding)
   ============================================ */
.health-goals-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.health-goal-option {
  position: relative;
}

.health-goal-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.health-goal-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'quick-gaseous', monospace;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform, background, border-color;
}

.health-goal-label:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(5px);
}

.health-goal-input:checked + .health-goal-label {
  background: rgba(0, 52, 5, 0.6);
  border-color: rgb(255, 255, 255);
  box-shadow: 0 4px 15px rgba(0, 94, 9, 0.4);
}

.health-goal-radio {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.health-goal-input:checked + .health-goal-label .health-goal-radio {
  border-color: rgb(255, 255, 255);
  background: rgb(255, 255, 255);
}

.health-goal-input:checked + .health-goal-label .health-goal-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: rgb(0, 52, 5);
  border-radius: 50%;
}

.health-goal-text {
  flex: 1;
}

.health-goal-title {
  font-weight: 100;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: rgb(255, 255, 255);
}

.health-goal-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ============================================
   BACK TO HOME LINK
   ============================================ */
.back-to-home {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #48c261, #2ecc71);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.back-to-home:hover {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.9);
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(46, 204, 113, 1);
  }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgb(255, 255, 255);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg) translateZ(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN - TABLETS & MEDIUM SCREENS
   ============================================ */
@media screen and (max-width: 1024px) {
  .profile-container {
    padding: 1.5rem;
  }

  .profile-header {
    padding: 1.5rem;
    gap: 1rem;
  }

  .profile-info h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }

  .profile-section {
    padding: 1.5rem;
  }

  .profile-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }

  .my-foods-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
  }

  .food-card-mini {
    padding: 1.2rem;
  }

  .food-card-mini h4 {
    font-size: 1.1rem;
  }

  .food-card-mini p {
    font-size: 0.85rem;
  }

  .logout-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .auth-subtitle {
    font-size: 0.95rem !important;
  }
}

/* ============================================
   RESPONSIVE DESIGN - TABLETS PORTRAIT
   ============================================ */
@media screen and (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
    max-width: 95%;
  }

  .auth-title {
    font-size: 2rem;
  }

  .back-to-home {
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
  }

  .health-goal-label {
    padding: 1rem;
    font-size: 0.95rem;
  }

  /* Profile page responsive - TABLETS PORTRAIT */
  .profile-container {
    padding: 1.25rem;
    max-width: 100%;
  }

  .profile-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .profile-info {
    flex: 1;
  }

  .profile-info h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    margin-bottom: 0.5rem;
  }

  .profile-info p {
    font-size: 0.9rem;
  }

  .logout-button {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .profile-section {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .profile-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .auth-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .my-foods-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
  }

  .food-card-mini {
    padding: 1rem;
    border-radius: 10px;
  }

  .food-card-mini h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .food-card-mini p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .empty-state {
    padding: 2.5rem 1rem;
  }

  .empty-state p {
    font-size: 1rem;
  }

  .back-to-home {
    top: 1rem;
    left: 1rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .auth-page {
    padding: 1rem 0.5rem;
  }

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

  .auth-title {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }

  .form-input {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .auth-button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .health-goal-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  /* Profile page mobile responsive - SMALL PHONES */
  .profile-container {
    padding: 1rem 0.75rem;
    max-width: 100%;
  }

  .profile-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .profile-info h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .profile-info p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .logout-button {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .profile-section {
    padding: 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }

  .profile-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .auth-subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  .my-foods-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .food-card-mini {
    padding: 0.75rem;
    border-radius: 10px;
  }

  .food-card-mini h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .food-card-mini p {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .food-card-mini div[style*="margin-top: 1rem"] {
    margin-top: 0.5rem !important;
    flex-direction: column;
    gap: 0.4rem;
  }

  .food-card-mini button {
    width: 100% !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  .back-to-home {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .empty-state {
    padding: 2rem 0.75rem;
  }

  .empty-state p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
    font-size: 0.85rem !important;
    padding: 0.6rem 0.75rem !important;
  }

  .empty-state {
    padding: 2rem 1rem;
  }

  .empty-state p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .auth-subtitle {
    font-size: 0.95rem;
  }

  .back-to-home {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================
   SUPERFOODS MODAL - NUTRITION SUGGESTIONS
   ============================================ */
.superfoods-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.superfoods-modal-content {
  background: radial-gradient(rgb(74, 138, 74) 30%, rgb(0, 61, 0) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.4s ease;
  position: relative;
}

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

.superfoods-modal-header h2 {
  font-family: 'quick-gaseous', monospace;
  font-size: 2.2rem;
  color: rgb(255, 255, 255);
  text-shadow: 3px 2px 3px #3a6a35;
  margin-bottom: 0.5rem;
}

.superfoods-modal-header p {
  font-family: 'quick-gaseous', monospace;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

.superfoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.superfood-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.superfood-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.superfood-card h4 {
  font-family: 'quick-gaseous', monospace;
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
  margin: 0 0 0.8rem 0;
  text-shadow: 1px 1px 2px #3a6a35;
}

.superfood-card p {
  font-family: 'quick-gaseous', monospace;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.superfood-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.superfood-stat {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.superfood-stat strong {
  color: rgb(255, 255, 255);
  display: block;
  font-size: 1rem;
}

.superfoods-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.superfoods-modal-actions button {
  padding: 0.9rem 2rem;
  border-radius: 10px;
  border: none;
  font-family: 'quick-gaseous', monospace;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.superfoods-btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.superfoods-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.superfoods-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.superfoods-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.superfoods-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: rgb(255, 255, 255);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.superfoods-modal-close:hover {
  opacity: 1;
}

/* Mobile responsiveness for superfoods modal */
@media (max-width: 768px) {
  .superfoods-modal-content {
    padding: 1.5rem;
    max-width: 95%;
  }

  .superfoods-modal-header h2 {
    font-size: 1.8rem;
  }

  .superfoods-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .superfoods-modal-close {
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
  }
}

/* ============================================
   PROFILE PAGE SPECIFIC STYLES
   ============================================ */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

.profile-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-sizing: border-box;
  width: 100%;
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.profile-info h2 {
  font-family: 'quick-gaseous', monospace;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: rgb(255, 255, 255);
  text-shadow: 3px 2px 3px #3a6a35;
  margin-bottom: 0.5rem;
}

.profile-info p {
  font-family: 'quick-gaseous', monospace;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.logout-button {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.profile-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.profile-section h3 {
  font-family: 'quick-gaseous', monospace;
  font-size: 1.8rem;
  color: rgb(255, 255, 255);
  margin-bottom: 1.5rem;
  text-shadow: 2px 1px 2px #3a6a35;
}

/* My Foods Grid */
.my-foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

.food-card-mini {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* GPU Acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, background;
}

.food-card-mini:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.food-card-mini h4 {
  font-family: 'quick-gaseous', monospace;
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.food-card-mini p {
  font-family: 'quick-gaseous', monospace;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'quick-gaseous', monospace;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
