/*
  Author: Yogabrata Mukhopadhyay
  Organization: Brahmexa
  Copyright: Copyright (c) 2026 Brahmexa. All rights reserved.
*/

/* ==========================================================================
   Cosmic Pattern Analyzer - Brahmexa Circular Universe Theme
   ========================================================================== */

.ym-util-app {
  --bg-primary: #070a12;
  --bg-card: rgba(15, 23, 42, 0.85);
  --border-gold: rgba(245, 158, 11, 0.3);
  --accent-gold: #f59e0b;
  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-family: 'Inter', system-ui, sans-serif;
}

.ym-util-app, .ym-util-app * { box-sizing: border-box; }

.ym-util-app {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(56, 189, 248, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.5rem; }

.hero-header { text-align: center; padding: 2rem 1rem; }
.hero-title {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.hero-subtitle { color: var(--text-secondary); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.3rem; font-weight: 700; color: var(--accent-gold);
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem;
}

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-control {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem; padding: 0.75rem 1rem;
  color: var(--text-primary); font-size: 0.95rem; outline: none;
}
.form-control:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3); }

.quick-preset {
  font-size: 0.72rem; padding: 0.2rem 0.5rem; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 0.3rem; cursor: pointer; color: var(--accent-gold);
  white-space: nowrap; transition: background 0.15s ease;
}
.quick-preset:hover { background: rgba(245, 158, 11, 0.25); }

.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; background: #0f172a;
  border: 1px solid var(--accent-gold); border-radius: 0.5rem;
  max-height: 200px; overflow-y: auto; z-index: 100; margin-top: 4px;
}
.search-item { padding: 0.65rem 1rem; cursor: pointer; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.search-item:hover { background: rgba(245, 158, 11, 0.2); color: var(--accent-gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; font-weight: 700; border-radius: 0.5rem; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070a12; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45); }

/* Grid Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

.lunar-widget { text-align: center; padding: 1.5rem; background: rgba(30, 41, 59, 0.5); border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.08); }
.lunar-phase-svg { width: 110px; height: 110px; margin: 0 auto 0.75rem; }

.cycle-card {
  background: rgba(30, 41, 59, 0.4); border-radius: 0.75rem; padding: 1.2rem; margin-bottom: 1rem;
  border-left: 4px solid var(--accent-cyan);
}
.cycle-title { font-size: 1.1rem; font-weight: 700; color: var(--accent-cyan); margin-bottom: 0.3rem; }
.cycle-badge { font-size: 0.75rem; background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); padding: 0.2rem 0.6rem; border-radius: 0.4rem; display: inline-block; margin-bottom: 0.5rem; }

.aspect-badge {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 0.4rem; font-size: 0.85rem; font-weight: 600; margin: 0.2rem;
}
.aspect-trine { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981; }
.aspect-square { background: rgba(244, 63, 94, 0.2); color: #f43f5e; border: 1px solid #f43f5e; }
.aspect-conjunction { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }

.retro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }
.retro-item { background: rgba(15, 23, 42, 0.6); padding: 0.75rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.06); text-align: center; }
.retro-item.active { border-color: var(--accent-rose); background: rgba(244, 63, 94, 0.1); }
