/* Modern Dark Focus Fuel CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #e1e5e9;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.background-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
  animation: backgroundFloat 15s ease-in-out infinite;
  z-index: -2;
}

.background-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  z-index: -3;
}

@keyframes backgroundFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

/* Main Card */
.focus-card {
  background: rgba(20, 22, 37, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  animation: cardEntry 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

@keyframes cardEntry {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.spacer {
  width: 80px; /* Balance the back button */
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e1e5e9;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(120, 119, 198, 0.5));
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.logo-container h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7877c6 0%, #ff77c6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* Mantra Content */
.mantra-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mantra-card {
  position: relative;
  background: rgba(30, 32, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mantra-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7877c6, #ff77c6, #78dbff);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.mantra-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.6;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tip-card {
  background: rgba(40, 42, 57, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mantra-tip {
  font-size: 1rem;
  color: #d1d5db;
  text-align: center;
  line-height: 1.5;
}

/* Refresh Button */
.refresh-btn {
  background: linear-gradient(135deg, #7877c6 0%, #5a67d8 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 25px rgba(120, 119, 198, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.refresh-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;
}

.refresh-btn:hover::before {
  left: 100%;
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 35px rgba(120, 119, 198, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #8a89d4 0%, #6875e6 100%);
}

.refresh-btn:active {
  transform: translateY(0);
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(120, 119, 198, 0.1) 0%, rgba(255, 119, 198, 0.1) 100%);
  pointer-events: none;
  z-index: -1;
}

.floating-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  right: 10%;
  animation: float1 6s ease-in-out infinite;
}

.floating-2 {
  width: 40px;
  height: 40px;
  bottom: 20%;
  left: 15%;
  animation: float2 8s ease-in-out infinite;
}

.floating-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 5%;
  animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-180deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(90deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .focus-card {
    padding: 2rem;
  }

  .header-top {
    flex-direction: column;
    gap: 1rem;
  }

  .spacer {
    display: none;
  }

  .mantra-text {
    font-size: 1.2rem;
  }

  .refresh-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .focus-card {
    padding: 1.5rem;
  }

  .mantra-card,
  .tip-card {
    padding: 1.5rem;
  }

  .mantra-text {
    font-size: 1.1rem;
  }
}