/* Akasha Gold App Styles */

:root {
  --primary-color: #ffc107;
  --primary-light: #ffc107;
  --primary-dark: #ffc107;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --text-secondary: #666;
  --border-color: #ddd;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --info-color: #17a2b8;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* App Layout */
.app-container,
.akasha-app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Main content area that contains all views */
.akasha-main-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 60px; /* Space for bottom nav */
}

/* Component containers */
.akasha-component-root {
  width: 100%;
  height: 100%;
}

/* Bottom navigation fixed positioning */
.akasha-bottom-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.app-header {
  background-color: white;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.app-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
}

.logout-button {
  background-color: var(--primary-light); /* Use theme color */
  color: var(--text-color); /* Ensure readable text */
  border: 1px solid var(--primary-dark); /* Add subtle border */
  border-radius: 8px; /* Standard border radius */
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Softer shadow */
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center; /* Ensure text is centered */
}

.logout-button:hover {
  background-color: var(--primary-color); /* Slightly darker on hover */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.logout-button:focus {
  outline: 2px solid var(--primary-dark); /* Consistent focus style */
  outline-offset: 1px;
}

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 60px); /* Account for header height */
  overflow-y: auto;
}

/* Loading Screen */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: white;
}

.loading-screen:before {
  content: "";
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */

/* Responsive Design */
@media (max-width: 768px) {
  .app-title {
    font-size: 24px;
  }
  
  .logout-button {
    padding: 6px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 12px;
  }
  
  .app-title {
    font-size: 20px;
  }
  
  .logout-button {
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-down {
  animation: slideDown 0.4s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Cosmic theme elements */

/* Cosmic theme elements */
.cosmic-glow {
  position: fixed;
  top: -20vh;
  right: -10vw;
  width: 70vw;
  height: 70vh;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0) 70%); /* Replaced purple with gold */
  pointer-events: none;
  z-index: -1;
}

.golden-burst {
  position: fixed;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.golden-burst:first-of-type {
  bottom: -10vh;
  left: -10vw;
}

.golden-burst:last-of-type {
  top: 30vh;
  right: -10vw;
  opacity: 0.6;
}

.spiritual-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.spiritual-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px 2px rgba(255, 193, 7, 0.3); /* Replaced purple shadow with gold */
  animation: float 20s infinite linear;
}

.spiritual-particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.spiritual-particle:nth-child(2) { top: 40%; left: 80%; animation-delay: -4s; }
.spiritual-particle:nth-child(3) { top: 70%; left: 30%; animation-delay: -8s; }
.spiritual-particle:nth-child(4) { top: 30%; left: 50%; animation-delay: -12s; }
.spiritual-particle:nth-child(5) { top: 80%; left: 70%; animation-delay: -16s; }
.spiritual-particle:nth-child(6) { top: 20%; left: 30%; animation-delay: -3s; }
.spiritual-particle:nth-child(7) { top: 60%; left: 10%; animation-delay: -7s; }
.spiritual-particle:nth-child(8) { top: 50%; left: 90%; animation-delay: -11s; }

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Enhance focus states for accessibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* For screen readers but visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
