/* Cat Museum Website - Main Stylesheet */
:root {
  --color-primary: #76b3b8;
  --color-primary-dark: #5a9ea3;
  --color-heading: #42514c;
  --color-text: #5a6b67;
  --color-text-light: #8a9b97;
  --color-bg: #faf8f5;
  --color-bg-alt: #f2efea;
  --color-white: #ffffff;
  --color-border: #e0dbd4;
  --color-accent: #c49a8a;
  --color-accent-light: #e8d5cb;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Gentium Basic', Georgia, serif;
  --font-nav: 'Montserrat', 'Noto Sans TC', sans-serif;
  --font-title: 'Saginaw', 'Playfair Display', Georgia, serif;
  --max-width: 960px;
  --header-height: 80px;
}

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

/* Global link colors - override browser default blue */
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
/* Links in nav and buttons keep their own styling */
.main-nav a { color: var(--color-heading); }
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); text-decoration: none; }
.btn { color: var(--color-heading); }
.btn:hover { color: var(--color-white); text-decoration: none; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: white; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
  /* CSS-only background pattern: subtle vintage wallpaper texture */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(118,179,184,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196,154,138,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(66,81,76,0.03) 0%, transparent 50%);
}

/* ====== DECORATIVE ELEMENTS (CSS-only, no images) ====== */

/* Decorative divider: a thin line with diamond accent */
.divider {
  text-align: center;
  margin: 40px 0;
  position: relative;
}
.divider::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--color-border);
  width: 60%;
  margin: 0 auto;
}
.divider::after {
  content: '◇';
  display: block;
  font-size: 12px;
  color: var(--color-primary);
  position: relative;
  top: -7px;
  background: var(--color-bg);
  width: 30px;
  margin: 0 auto;
}

/* Decorative corner flourishes for section headers */
h2 .ornament {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 400;
  display: block;
  margin-top: 6px;
  letter-spacing: 4px;
  font-family: var(--font-body);
}

/* ====== HEADER ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.site-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.site-title:hover { color: var(--color-primary-dark); }

/* Navigation */
.main-nav {
  margin-left: auto;
  display: flex;
  gap: 0;
}

.main-nav a {
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-heading);
  text-decoration: none;
  padding: 10px 18px;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  margin: 5px 0;
  transition: 0.3s;
}

/* ====== MAIN CONTENT ====== */
main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 200px);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: brightness(0.6);
  z-index: 0;
}
/* CSS-only decorative overlay for hero without image */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(118,179,184,0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(196,154,138,0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(66,81,76,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Bottom wave */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-bg);
  clip-path: ellipse(70% 100% at 50% 100%);
  z-index: 1;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero .hero-content h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  color: white;
  margin-bottom: 12px;
  font-weight: 400;
}
.hero .hero-content .subtitle {
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.hero .hero-content .event-date {
  font-family: var(--font-heading);
  font-size: 30px;
  color: white;
  margin-bottom: 8px;
}
.hero .hero-content .event-venue {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}
.hero .hero-content .btn {
  border-color: white;
  color: white;
  text-shadow: none;
}
.hero .hero-content .btn:hover {
  background: white;
  color: var(--color-heading);
}
.hero .hero-content .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.hero .hero-content .btn-primary:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid var(--color-heading);
  color: var(--color-heading);
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-heading);
  color: var(--color-white);
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* ====== TYPOGRAPHY ====== */
h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--color-heading);
  font-weight: 400;
  margin-bottom: 30px;
  position: relative;
}

h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-heading);
  font-weight: 400;
  margin-bottom: 16px;
}

/* ====== INFO CARDS ====== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 30px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.info-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* ====== SECTIONS ====== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ====== EVENT DETAILS LIST ====== */
.event-detail-list {
  list-style: none;
  padding: 0;
}

.event-detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 12px;
  font-size: 17px;
}

.event-detail-list li:last-child { border-bottom: none; }

.event-detail-list .label {
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-light);
  min-width: 100px;
  flex-shrink: 0;
}

/* ====== VENDOR LIST ====== */
.vendor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}

.vendor-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 10px 16px;
  font-size: 15px;
  text-align: center;
}

/* ====== GALLERY / IMAGE PLACEHOLDERS ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e8e0d6 100%);
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
  font-family: var(--font-nav);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
/* CSS-only decorative pattern inside gallery placeholders */
.gallery-item::before {
  content: '✦';
  font-size: 32px;
  color: var(--color-border);
  margin-bottom: 8px;
  opacity: 0.6;
}
.gallery-item .gallery-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-text-light);
}
/* Subtle inner pattern */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(118,179,184,0.03) 20px, rgba(118,179,184,0.03) 21px);
  pointer-events: none;
}

/* Image placeholder for hero/banner areas */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e8e0d6 100%);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '🖼';
  font-size: 28px;
  margin-bottom: 6px;
  opacity: 0.5;
}
/* Banner-size placeholder */
.img-placeholder-banner {
  width: 100%;
  height: 300px;
  margin: 30px 0;
}
.img-placeholder-square {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
}

/* ====== CONTACT ====== */
.contact-info {
  font-size: 17px;
  line-height: 2;
}

.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--color-heading);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 60px 40px 40px;
  font-size: 14px;
  font-family: var(--font-nav);
  letter-spacing: 1px;
  position: relative;
  margin-top: 60px;
}
/* Top decorative line */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ====== PAGE-SPECIFIC BANNERS ====== */

/* Vol.7 event page banner */
.page-banner {
  background: linear-gradient(135deg, #42514c 0%, #5a7a74 100%);
  color: white;
  text-align: center;
  padding: 60px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(118,179,184,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196,154,138,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.page-banner h2 {
  color: white;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* Tag line decorative */
.tagline {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-primary);
  font-style: italic;
  margin: 30px 0;
  position: relative;
  padding: 20px 0;
}
.tagline::before,
.tagline::after {
  content: '~';
  color: var(--color-accent-light);
  margin: 0 10px;
  font-size: 18px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  
  .nav-toggle { display: block; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 10px 0;
  }
  
  .main-nav.open { display: flex; }
  
  .main-nav a {
    padding: 14px 24px;
    font-size: 13px;
  }
  
  .hero { padding: 60px 20px; min-height: 400px; }
  .hero .hero-content h1 { font-size: 30px; }
  .hero .hero-content .event-date { font-size: 22px; }
  .hero .hero-content .event-venue { font-size: 17px; }
  
  .page { padding: 40px 20px; }
  
  h2 { font-size: 28px; }
  
  .info-grid { grid-template-columns: 1fr; }
  
  .event-detail-list li {
    flex-direction: column;
    gap: 4px;
  }
  
  .event-highlight { padding: 24px 0; }
  .event-highlight h2 { font-size: 28px; }
  .event-highlight .date { font-size: 20px; }
  .event-highlight .venue { font-size: 16px; }
  
  .slide-btn { width: 36px; height: 36px; font-size: 16px; }
  
  .page .section > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  .img-placeholder-banner { height: 200px; }
  .page-banner { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .site-title { font-size: 18px; letter-spacing: 2px; }
  .hero { padding: 40px 20px; min-height: 320px; }
  .hero .hero-content h1 { font-size: 26px; }
  .hero .hero-content .event-date { font-size: 20px; }
  .hero .hero-content .event-venue { font-size: 16px; }
  .page { padding: 30px 16px; }
  .img-placeholder-banner { height: 150px; }
}