/* ===== MAGDELENA FRANCZYZEK — style.css ===== */

:root {
  --bg-deep:      #0d0010;
  --bg-mid:       #1a0028;
  --violet-dark:  #2d0050;
  --violet:       #6b00c2;
  --violet-light: #9b30ff;
  --rose-deep:    #8b0057;
  --rose:         #d4006a;
  --rose-light:   #ff66b3;
  --pink-glow:    #ff99cc;
  --cream:        #f8eeff;
  --text-main:    #f0dcff;
  --text-muted:   #b07ad0;
  --font-display: 'Cinzel Decorative', serif;
  --font-body:    'Cormorant Garamond', serif;
  --glow-rose:    0 0 20px rgba(212,0,106,0.6), 0 0 60px rgba(212,0,106,0.2);
  --glow-violet:  0 0 20px rgba(107,0,194,0.6), 0 0 60px rgba(107,0,194,0.2);
  --border-magic: 1px solid rgba(155,48,255,0.3);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.1rem;
  min-height: 100vh;
  overflow-x: hidden;
}

#starfield {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(139,0,87,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(107,0,194,0.3) 0%, transparent 55%);
  z-index: 0; pointer-events: none;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(13,0,16,0.75);
  backdrop-filter: blur(14px);
  border-bottom: var(--border-magic);
  gap: 1rem;
}
nav .logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--rose-light);
  text-shadow: var(--glow-rose);
  text-decoration: none;
  flex-shrink: 0;
}
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul li a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s, text-shadow .3s;
}
nav ul li a:hover, nav ul li a.active {
  color: var(--pink-glow);
  text-shadow: var(--glow-rose);
}
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--rose-light); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }

/* ===== ADMIN BUTTON / INDICATOR ===== */
#admin-login-btn {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .52rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: transparent; border: var(--border-magic);
  color: var(--text-muted); padding: .45rem 1rem;
  border-radius: 50px; cursor: pointer; transition: all .3s;
  white-space: nowrap;
}
#admin-login-btn:hover { color: var(--rose-light); border-color: var(--rose-light); box-shadow: var(--glow-rose); }

#admin-indicator {
  display: none; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: .52rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: #a0e8a0; background: rgba(0,80,0,.25);
  border: 1px solid rgba(100,200,100,.35);
  padding: .45rem 1rem; border-radius: 50px; white-space: nowrap;
}
.admin-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4cdf4c; box-shadow: 0 0 8px #4cdf4c;
  animation: blink 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.logout-x {
  background: none; border: none; color: rgba(160,232,160,.5);
  cursor: pointer; font-size: 1rem; padding: 0; margin-left: .1rem;
  line-height: 1; transition: color .2s;
}
.logout-x:hover { color: #ff6666; }

#admin-editor-btn {
  display: none;
  align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .52rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  border: none; color: var(--cream);
  padding: .45rem 1rem; border-radius: 50px;
  cursor: pointer; transition: all .3s; white-space: nowrap;
  box-shadow: var(--glow-violet); text-decoration: none;
}
#admin-editor-btn:hover { background: linear-gradient(135deg, var(--violet), var(--violet-light)); transform: scale(1.05); }

/* ===== MAIN ===== */
main { position: relative; z-index: 1; padding-top: 80px; min-height: 100vh; }

/* ===== PAGE HEADER ===== */
.page-header { text-align: center; padding: 4rem 2rem 2rem; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--cream); text-shadow: var(--glow-rose); margin-bottom: .8rem;
}
.page-header .subtitle { font-style: italic; color: var(--text-muted); font-size: 1.1rem; }

.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem auto; max-width: 500px; }
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-light), transparent);
}
.divider-star { color: var(--rose-light); font-size: 1.2rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .75rem 1.8rem; border-radius: 50px;
  cursor: pointer; text-decoration: none; transition: all .3s; border: none;
}
.btn-rose {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: var(--cream); box-shadow: var(--glow-rose);
}
.btn-rose:hover { background: linear-gradient(135deg, var(--rose), var(--rose-light)); transform: scale(1.05); }
.btn-violet {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  color: var(--cream); box-shadow: var(--glow-violet);
}
.btn-violet:hover { background: linear-gradient(135deg, var(--violet), var(--violet-light)); transform: scale(1.05); }
.btn-outline {
  background: transparent; border: var(--border-magic); color: var(--violet-light);
}
.btn-outline:hover { background: rgba(155,48,255,.15); border-color: var(--violet-light); box-shadow: var(--glow-violet); }

/* ===== CARDS ===== */
.card {
  background: rgba(45,0,80,.4); border: var(--border-magic);
  border-radius: 12px; padding: 2rem; backdrop-filter: blur(8px);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow-violet); border-color: rgba(155,48,255,.6); }

/* ===== LOGIN MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,0,16,.85);
  backdrop-filter: blur(8px);
  z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: linear-gradient(135deg, var(--bg-mid), var(--violet-dark));
  border: var(--border-magic); border-radius: 16px;
  padding: 2.5rem; max-width: 440px; width: 100%;
  position: relative; box-shadow: var(--glow-violet), 0 40px 80px rgba(0,0,0,.6);
}
.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: var(--rose-light); }
.modal h3 {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--rose-light); margin-bottom: 1.5rem; text-shadow: var(--glow-rose);
}
.modal-subtitle { font-style: italic; color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.form-group label { font-size: .85rem; color: var(--text-muted); font-style: italic; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: rgba(13,0,16,.5);
  border: var(--border-magic); border-radius: 8px;
  padding: .75rem 1rem; color: var(--text-main);
  font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--violet-light); box-shadow: 0 0 12px rgba(155,48,255,.2);
}
.login-error {
  display: none; color: #ff6666; font-size: .9rem;
  font-style: italic; margin-bottom: 1rem; text-align: center;
}

/* ===== FOOTER ===== */
footer {
  position: relative; z-index: 1; text-align: center;
  padding: 3rem 2rem; border-top: var(--border-magic);
  color: var(--text-muted); font-style: italic; font-size: .95rem;
}
footer a { color: var(--rose-light); text-decoration: none; }
footer a:hover { text-shadow: var(--glow-rose); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--rose), var(--violet)); border-radius: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; flex-direction: column; gap: 1rem; }
  nav ul.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13,0,16,.95); padding: 1.5rem; border-bottom: var(--border-magic);
  }
  .nav-toggle { display: flex; }
}
