/* Minimal stylesheet. Main page styles currently live inline in index.php.
   You can move the big inline block from index.php into this file to clean up.
*/

html,body { box-sizing: border-box; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  position: relative;
  padding: 20px;
}
.bg-overlay { position: absolute; inset: 0; overflow: hidden; }
.bg-image {
  position: absolute;
  top: -10%; left: -10%; width: 120%; height: 120%;
  background-size: cover; background-position: center;
  opacity: 0; animation: bgCycle 98s infinite;
  will-change: transform, opacity;
}
@keyframes bgCycle {
  0% { opacity: 0; transform: scale(1); }
  3% { opacity: 0.2; transform: scale(1); }
  17% { opacity: 0.2; transform: scale(1.06); }
  20% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); }
}

.container {
  position: relative; z-index: 1; max-width: 900px; width: 100%;
  padding: 48px; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px); border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: fadeInUp 0.8s ease-out;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.title { font-size: 2.5rem; font-weight: 700; color: #1e293b; margin-bottom: 32px; text-align: center; letter-spacing: -0.025em; }

.quote-section {
  display: flex; align-items: flex-start; gap: 24px; margin: 40px 0;
  background: rgba(248, 250, 252, 0.9); padding: 24px; border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6); min-width: 280px;
  opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.quote-section.visible { opacity: 1; transform: translateY(0); }

.avatar-container { flex-shrink: 0; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}
.avatar:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.9); border-color: rgba(59, 130, 246, 0.2); }

.quote-content { flex: 1; position: relative; }
.quote-text {
  font-size: 1rem; line-height: 1.6; color: #334155; font-weight: 400;
  margin-bottom: 16px; padding-left: 20px; position: relative; font-style: italic;
}
.quote-text::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, #3b82f6, #8b5cf6); border-radius: 2px; }
.typing-cursor {
  display: inline-block; width: 8px; height: 8px; background-color: #3b82f6;
  border-radius: 50%; margin-left: 2px; animation: blink 1s infinite; vertical-align: middle;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.author { font-size: 0.875rem; color: #64748b; font-weight: 600; padding-left: 20px; }

.status-section { display: flex; align-items: center; justify-content: center; margin: 40px 0; }
.status {
  display: inline-flex; align-items: center; background: rgba(34, 197, 94, 0.1);
  color: #059669; padding: 12px 20px; border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2); font-weight: 500;
}
.status-indicator { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.1); } }
.status-text { font-size: 0.9rem; }

.progress-section {
  margin: 40px 0; background: rgba(248, 250, 252, 0.9);
  padding: 24px; border-radius: 16px; border: 1px solid rgba(226, 232, 240, 0.6);
}
.progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.progress-title { font-size: 0.95rem; color: #475569; font-weight: 600; }
.progress-percentage { font-size: 0.9rem; color: #3b82f6; font-weight: 700; transition: all 0.3s ease; }
.progress-container { background: rgba(226, 232, 240, 0.8); border-radius: 8px; height: 8px; overflow: hidden; }
.progress-bar {
  height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%; border-radius: 8px; position: relative;
  animation: progressShine 3s ease-in-out infinite; transition: width 80ms linear;
  will-change: width;
}
.progress-bar::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 2s infinite;
}
@keyframes shine { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes progressShine { 0%, 100% { box-shadow: 0 0 0 rgba(59, 130, 246, 0); } 50% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); } }

.cta-section { text-align: center; margin-top: 48px; }
.subscribe-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white; border: none; padding: 14px 32px; border-radius: 12px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  position: relative; overflow: hidden;
}
.subscribe-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;
}
.subscribe-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); }
.subscribe-btn:hover::before { left: 100%; }
.subscribe-btn:active { transform: translateY(-1px); }

.site-footer {
  position: relative; z-index: 1; text-align: center;
  padding: 20px 0 10px; max-width: 900px; width: 100%; margin: 0 auto;
}
.site-footer p {
  font-size: 0.8rem; color: rgba(100, 116, 139, 0.6); font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .container { margin: 20px; padding: 32px 24px; }
  .title { font-size: 2rem; }
  .quote-section { flex-direction: column; gap: 24px; text-align: center; padding: 24px; }
  .avatar { width: 64px; height: 64px; margin: 0 auto; }
  .quote-text { padding-left: 0; font-size: 1.05rem; }
  .quote-text::before { display: none; }
  .author { padding-left: 0; }
  .progress-section { padding: 20px; }
}
