@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --bg-main: #0d1b2a;
  --bg-card: #1a2f3f;
  --gold: #c9a84c;
  --text-main: #f0e6d3;
  --text-secondary: #9bb5c8;
  --green: #2d6a4f;
  --font-title: 'Cinzel', serif;
  --font-text: 'Nunito', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-title); color: var(--gold); font-weight: 600; }
a { color: var(--gold); text-decoration: none; transition: 0.3s; }
a:hover { opacity: 0.8; }

.container { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Stars animation */
.stars {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 5s infinite;
}
@keyframes twinkle {
  0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; }
}

.card {
  background-color: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.6); border-color: var(--gold); }

.btn {
  display: inline-block;
  background-color: var(--gold);
  color: var(--bg-main);
  font-family: var(--font-title);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  min-height: 48px;
  text-align: center;
  transition: 0.3s;
  width: 100%;
  font-size: 1.1rem;
}
.btn:hover { background-color: #d1b465; }
.btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover { background-color: rgba(201, 168, 76, 0.1); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); }
.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--text-secondary);
  background-color: rgba(0,0,0,0.2);
  color: var(--text-main);
  font-family: var(--font-text);
  font-size: 16px;
}
.form-control:focus { outline: none; border-color: var(--gold); }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.hero { text-align: center; padding: 4rem 0; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(201, 168, 76, 0.5); }
.hero p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; }

.separator {
  text-align: center; color: var(--gold); margin: 2rem 0; font-size: 1.5rem; letter-spacing: 1rem;
}

header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(201, 168, 76, 0.2); margin-bottom: 2rem; }
.logo { font-family: var(--font-title); font-size: 1.5rem; color: var(--gold); font-weight: 700; }
header nav a { margin-left: 1rem; }

#alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: none; }
.alert-error { background-color: rgba(200, 50, 50, 0.2); border: 1px solid #c32; color: #f0e6d3; }
.alert-success { background-color: rgba(45, 106, 79, 0.2); border: 1px solid var(--green); color: #f0e6d3; }

.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media(min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .btn { width: auto; }
}

.hidden { display: none !important; }
