/* ===========================
   BERLIN COMMUNITY GUIDE CSS
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #0d0a0e;
  --overlay: rgba(10, 7, 12, 0.72);
  --text: #e8ddd0;
  --muted: #b0a090;
  --accent: #c8a96e;
  --btn-bg: #0d0a0e;
  --btn-border: #3a2f25;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', serif;
  background-color: var(--dark);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.bg-art {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(120,50,30,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(60,20,80,0.3) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(15,8,5,0.5) 0%, transparent 80%);
  background-color: #0d0a0e;
}

.overlay {
  position: fixed; inset: 0;
  background: var(--overlay); z-index: 2;
}

.grain {
  position: fixed; inset: 0; z-index: 3;
  opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(13,10,14,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.12);
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 18px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
}

.nav-links {
  display: flex; gap: 32px;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px;
}

.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--accent); transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(13,10,14,0.97);
  backdrop-filter: blur(20px);
  z-index: 99; flex-direction: column;
  padding: 20px 28px 28px;
  border-bottom: 1px solid rgba(200,169,110,0.1);
  transform: translateY(-10px); opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  display: flex; transform: translateY(0); opacity: 1;
}

.mobile-menu a {
  font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ===== CONTENT ===== */
.content {
  position: relative; z-index: 10;
  max-width: 560px; margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
}

/* ===== TYPOGRAPHY ===== */
.badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 6px 14px; border-radius: 2px;
  margin-bottom: 28px;
  animation: fadeIn 1s ease both;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(26px, 6vw, 46px);
  font-weight: 700; line-height: 1.15;
  color: var(--text); margin-bottom: 18px;
  animation: slideUp 0.9s ease both 0.1s;
}

h1 span { color: var(--accent); }

h2 {
  font-family: 'Cinzel', serif;
  font-size: 17px; color: var(--accent);
  margin-bottom: 12px;
  animation: slideUp 0.9s ease both 0.3s;
}

h3 {
  font-family: 'Cinzel', serif;
  font-size: 14px; color: var(--text);
  margin: 24px 0 10px; letter-spacing: 1px;
}

.lead {
  font-size: 18px; line-height: 1.7;
  color: var(--muted); margin-bottom: 36px;
  animation: slideUp 0.9s ease both 0.2s;
}

.section-text {
  font-size: 16px; line-height: 1.75;
  color: var(--muted); margin-bottom: 28px;
  animation: slideUp 0.9s ease both 0.4s;
}

p { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 18px; }

.divider {
  width: 60px; height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin: 32px 0;
  animation: fadeIn 1s ease both 0.3s;
}

/* ===== LIST ===== */
.list { list-style: none; margin-bottom: 36px; animation: slideUp 0.9s ease both 0.45s; }

.list li {
  font-size: 15px; color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 10px;
}

.list li::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ===== TAGS ===== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; animation: fadeIn 1s ease both 0.5s; }

.tag {
  font-size: 12px; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px; border-radius: 20px; letter-spacing: 0.5px;
}

.updated {
  font-size: 13px; color: rgba(176,160,144,0.5);
  margin-bottom: 40px; font-style: italic;
  animation: fadeIn 1s ease both 0.5s;
}

/* ===== BUTTONS ===== */
.buttons { display: flex; flex-direction: column; gap: 14px; animation: slideUp 0.9s ease both 0.6s; }

.btn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  background: rgba(13,10,14,0.85);
  border: 1px solid var(--btn-border);
  border-radius: 4px; color: var(--text);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}

.btn::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  transform: scaleY(0); transition: transform 0.3s ease;
}

.btn:hover { border-color: var(--accent); background: rgba(200,169,110,0.06); transform: translateX(4px); }
.btn:hover::before { transform: scaleY(1); }

.btn-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-icon svg { width: 22px; height: 22px; }

.btn-telegram .btn-icon { background: rgba(0,136,204,0.15); }
.btn-signal .btn-icon { background: rgba(58,118,240,0.15); }
.btn-whatsapp .btn-icon { background: rgba(37,211,102,0.12); }

.btn-label { flex: 1; }
.btn-arrow {
  font-size: 18px; color: var(--accent);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-6px);
}
.btn:hover .btn-arrow { opacity: 1; transform: translateX(0); }

/* ===== FORM (Contact) ===== */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block; font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--btn-border);
  border-radius: 4px; color: var(--text);
  font-family: 'Crimson Text', serif;
  font-size: 16px; outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { min-height: 120px; }

.btn-submit {
  width: 100%; padding: 16px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Cinzel', serif;
  font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s; border-radius: 4px;
}

.btn-submit:hover { background: var(--accent); color: var(--dark); }

/* ===== INFO CARD ===== */
.info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 24px;
  margin-bottom: 24px;
}

.info-card h3 { margin-top: 0; color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  margin-top: 60px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(176,160,144,0.4);
  text-align: center;
  animation: fadeIn 1.5s ease both 0.8s;
}

.footer a { color: rgba(200,169,110,0.5); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }

/* ===== SUCCESS MESSAGE ===== */
.success-msg {
  display: none; background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 4px; padding: 16px;
  color: var(--accent); font-size: 15px;
  text-align: center; margin-top: 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .content { padding: calc(var(--nav-h) + 32px) 20px 60px; }
  h1 { font-size: 24px; }
}
