/* ========================================
   GATARA.RS — Complete Stylesheet v3.0
   Clean rebuild — February 2026
   ======================================== */

/* === VARIABLES === */
:root {
  --bg-deep: #040408;
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(15, 15, 35, 0.85);
  --gold: #d4a84b;
  --gold-light: #f0d78c;
  --gold-dark: #a67c2e;
  --gold-glow: rgba(212, 168, 75, 0.4);
  --purple: #7c5cbf;
  --text-primary: #f0f0f5;
  --text-secondary: #a8a8b8;
  --text-muted: #6a6a7a;
  --border: rgba(212, 168, 75, 0.2);
  --border-hover: rgba(212, 168, 75, 0.5);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Josefin Sans', 'Segoe UI', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--gold-glow);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === COSMIC BACKGROUND === */
.cosmic-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: var(--bg-deep); }
.stars { position: absolute; width: 100%; height: 100%; }
.stars-1 { background-image: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8), transparent), radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.7), transparent), radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 15% 70%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.7), transparent); animation: twinkle 4s ease-in-out infinite; }
.stars-2 { background-image: radial-gradient(1.5px 1.5px at 25% 45%, rgba(212,168,75,0.3), transparent), radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 75% 25%, rgba(255,255,255,0.4), transparent), radial-gradient(1.5px 1.5px at 45% 90%, rgba(212,168,75,0.2), transparent); animation: twinkle 6s ease-in-out infinite 1s; }
.stars-3 { background-image: radial-gradient(2px 2px at 20% 85%, rgba(212,168,75,0.4), transparent), radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.3), transparent), radial-gradient(1.5px 1.5px at 80% 55%, rgba(124,92,191,0.3), transparent); animation: twinkle 8s ease-in-out infinite 2s; }
.nebula { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; }
.nebula-1 { top: 10%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, var(--gold-glow), transparent 70%); }
.nebula-2 { bottom: 20%; left: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,92,191,0.3), transparent 70%); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* === NAVIGATION === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; transition: all .3s; }
.nav.scrolled { background: rgba(10,10,26,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: .75rem 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.logo-icon { font-size: 1.3rem; }
.gold { color: var(--gold); }
.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-link { font-size: .95rem; font-weight: 500; color: var(--text-secondary); transition: color .2s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all .3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 2rem; border-radius: 9999px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all .3s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg-deep); box-shadow: 0 4px 15px var(--gold-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--gold-glow); }
.btn-star { font-size: 1.1rem; }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* === HERO (index.html) === */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.hero-content { max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; background: var(--glass); border: 1px solid var(--border); border-radius: 9999px; font-size: .85rem; color: var(--text-secondary); margin-bottom: 1.5rem; animation: float 4s ease-in-out infinite; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; color: var(--text-primary); }
.hero-title .gold { color: var(--gold); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 2rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === CALCULATOR SECTIONS (index.html) === */
.section { padding: 5rem 0; }
.section-title { font-family: var(--font-display); font-size: 2.2rem; text-align: center; margin-bottom: .75rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.calc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; backdrop-filter: blur(10px); max-width: 700px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group select { padding: .75rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-body); font-size: .95rem; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-group select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-actions { text-align: center; margin-top: 1.5rem; }

/* === RESULTS === */
.results-container { display: none; margin-top: 2rem; }
.results-container.visible { display: block; }
.result-header { text-align: center; margin-bottom: 2rem; }
.result-header h3 { font-size: 1.8rem; color: var(--gold); }
.chart-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 2rem; display: flex; justify-content: center; }
.planet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.planet-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; transition: all .3s; text-decoration: none; }
.planet-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.planet-card .planet-sym { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.planet-card .planet-name { font-weight: 600; color: var(--text-primary); font-size: .9rem; }
.planet-card .planet-sign { color: var(--gold); font-size: .85rem; }
.planet-card .planet-deg { color: var(--text-muted); font-size: .8rem; }

/* === ELEMENT CARDS (index.html) === */
.elements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 2rem 0; }
.el-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; transition: all .3s; }
.el-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.el-icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.el-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.el-desc { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }

/* === FOOTER === */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--text-muted); }

/* ==========================================
   SUBPAGES — All inner pages
   ========================================== */

/* === PAGE HEADER === */
.page-header {
  padding: calc(80px + 3rem) 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-top: .5rem;
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-muted); }

/* === PAGE CONTENT === */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin: 2.5rem 0 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
}
.page-content h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 1.5rem 0 .75rem;
}
.page-content p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.page-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.page-content li { color: var(--text-secondary); margin-bottom: .5rem; padding-left: .5rem; }
.page-content li::marker { color: var(--gold); }
.page-content strong { color: var(--text-primary); }
.page-content > a, .page-content p a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 168, 75, 0.3);
  transition: border-color .2s;
}
.page-content > a:hover, .page-content p a:hover { border-color: var(--gold); }

/* === SIGN NAVIGATION (planet pages) === */
.sign-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 2rem 0;
}
.sign-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .85rem .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .3s;
  text-decoration: none !important;
  font-size: .85rem;
  color: var(--text-secondary);
  border-bottom: none !important;
}
.sign-nav a:hover, .sign-nav a.active {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  background: rgba(212, 168, 75, 0.05);
}
.sign-nav .sign-sym {
  font-size: 1.5rem;
  margin-bottom: .25rem;
  line-height: 1;
}

/* === INFO BOX === */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.info-box h4 {
  color: var(--gold);
  margin-bottom: .75rem;
  font-family: var(--font-display);
}
.info-box p { margin-bottom: .25rem; }

/* === LINK GRID & CARDS === */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none !important;
  transition: all .3s;
  border-bottom: none !important;
}
.link-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(212, 168, 75, .12);
}
.link-card .link-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
}
.link-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  border: none;
}
.link-card p {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

/* === RELATED LINKS === */
.related-links { margin: 2.5rem 0; }
.related-links h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border-top: none;
  padding-top: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .8rem;
}

/* === COMPATIBILITY BAR (slaganje) === */
.compat-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 20px;
  margin: 1rem 0;
  overflow: hidden;
}
.compat-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  height: 100%;
  border-radius: 10px;
  transition: width 1s;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .3s;
    border-left: 1px solid var(--border);
  }
  .nav-menu.active { right: 0; }
  .sign-nav { grid-template-columns: repeat(3, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 1.6rem; }
  .page-content h2 { font-size: 1.3rem; }
  .elements-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .planet-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
@media (max-width: 480px) {
  .sign-nav { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .elements-grid { grid-template-columns: 1fr 1fr; }
}
