/* Discover Tirana – styles.css */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #0055a4;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* HEADER */
.site-header {
  border-bottom: 1px solid #eee;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo img { height: 42px; width: auto; display: block; }
.project-note { font-size: 0.8rem; opacity: 0.8; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a, .main-nav button.link-button {
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
}

.main-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; }
.main-nav a:hover, .main-nav a:focus,
.main-nav button.link-button:hover, .main-nav button.link-button:focus { text-decoration: underline; }

.nav-admin { color: #0055a4; font-weight: 600; }

.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; padding: 0.25rem 0.5rem; }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-home        { background: url("../images/hero-tirana.jpg")       center/cover no-repeat; }
.hero-about       { background: url("../images/hero-about.jpg")        center/cover no-repeat; }
.hero-attractions { background: url("../images/hero-attractions.jpg")  center/cover no-repeat; }
.hero-experiences { background: url("../images/hero-experiences.jpg")  center/cover no-repeat; }
.hero-events      { background: url("../images/hero-tirana.jpg")       center/cover no-repeat; }
.hero-contact     { background: url("../images/hero-contact.jpg")      center/cover no-repeat; }
.hero-auth        { background: url("../images/hero-about.jpg")        center/cover no-repeat; min-height: 200px; }

.hero::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.35;
  background: radial-gradient(circle at top, #ffffff, #000000);
}
.hero-overlay { position: relative; z-index: 1; padding: 2rem 1rem; }
.hero-subtitle { max-width: 34rem; margin: 0.5rem auto 0; }
.hero-actions { margin-top: 1rem; display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.hero-overlay h1 {
  display: inline-block;
  background: #0055a4;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  color: #fff;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn.primary   { background: #0055a4; color: #fff; }
.btn.secondary { background: #ffffff; color: #0055a4; border-color: #0055a4; }
.btn.danger    { background: #c0392b; color: #fff; }
.btn.small     { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* SECTIONS */
.section { padding: 2.5rem 0; }
.section-alt { background: #fafafa; }
.section h2 { margin-top: 0; }

/* GRID LAYOUTS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* CARDS */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}
.card h2, .card h3 { margin: 0 0 0.5rem; }

.card-link { color: #0055a4; font-weight: 600; margin-top: auto; }
.card-meta { font-size: 0.85rem; color: #666; margin: 0.25rem 0; }

/* EVENT CARDS */
.events-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.event-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.chip {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.chip:hover { border-color: #0055a4; }
.chip-active { background: #0055a4; border-color: #0055a4; color: #fff; }

/* NUMBERED SECTIONS (About) */
.numbered-section {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.numbered-section .number { font-size: 2rem; font-weight: 700; opacity: 0.2; }

/* CONTACT / FORMS */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 1.5rem;
}
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-row label { flex: 1 1 200px; }

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
input, textarea, select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font: inherit;
  margin-top: 0.25rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #0055a4;
  border-color: #0055a4;
}
.field-error { color: #c0392b; font-size: 0.85rem; margin-top: 0.25rem; }

/* AUTH FORMS (login / register / profile) */
.auth-box {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.auth-box h1 { margin-top: 0; }
.auth-footer { margin-top: 1rem; font-size: 0.9rem; }

/* DETAIL PAGES */
.detail-hero {
  min-height: 300px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.detail-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
}
.detail-hero .container { position: relative; padding: 1.5rem 0; width: 90%; }
.detail-hero h1 {
  display: inline-block;
  background: #0055a4;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin: 0;
}

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
.detail-aside {
  background: #fafafa;
  padding: 1.25rem;
  border-radius: 0.75rem;
  height: fit-content;
}
.detail-aside dl { margin: 0; }
.detail-aside dt { font-weight: 600; margin-top: 0.75rem; }
.detail-aside dt:first-child { margin-top: 0; }
.detail-aside dd { margin: 0 0 0.5rem; }

/* FLASH MESSAGES */
.flash {
  max-width: 1120px;
  width: 90%;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}
.flash-success { background: #e7f7ec; border-color: #b7e4c7; color: #1e5631; }
.flash-error   { background: #fdeceb; border-color: #f5c6cb; color: #842029; }

/* MAP */
.map-embed-wrapper { border-radius: 0.75rem; overflow: hidden; }

/* FOOTER */
.site-footer {
  border-top: 1px solid #eee;
  background: #ffffff;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a:hover { text-decoration: underline; }

/* FAVOURITE BUTTON */
.fav-btn {
  border: 1px solid #0055a4;
  background: #fff;
  color: #0055a4;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.fav-btn.is-fav { background: #0055a4; color: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid-3, .events-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbered-section { grid-template-columns: 60px minmax(0,1fr); }
  .contact-grid, .detail-body { grid-template-columns: 1fr; }
  .main-nav ul { display: none; width: 100%; }
  .main-nav.is-open ul { display: flex; flex-direction: column; gap: 0.5rem; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 640px) {
  .grid-3, .events-list { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .project-note { width: 100%; }
  .hero-overlay { padding: 1.5rem 1rem; }
  .numbered-section { grid-template-columns: 1fr; }
}

/* Social icon styling (reused from client-side) */
.social-link { display: inline-flex; align-items: center; margin-left: 0.25rem; }
.social-icon { width: 20px; height: 20px; fill: #0055a4; }
