/* Go Tourism Taiwan - Main Stylesheet */
/* Mobile-first responsive design */

:root {
  --primary: #0066cc;
  --primary-dark: #004d99;
  --secondary: #ff6b35;
  --secondary-dark: #e55a2b;
  --accent: #00b894;
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #2d3436;
  --border: #dfe6e9;
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00b894 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo:hover {
  color: var(--primary);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 8px;
  flex-shrink: 0;
}

.lang-switch .lang-link {
  color: var(--text-light);
  padding: 6px 10px;
  border-radius: var(--radius);
  line-height: 1.2;
}

.lang-switch .lang-link:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.lang-switch .lang-link.active {
  color: var(--primary);
  font-weight: 700;
  background: rgba(0, 102, 204, 0.08);
}

.lang-switch .lang-sep {
  color: var(--border);
  user-select: none;
}

@media (min-width: 1024px) {
  .lang-switch {
    margin-right: 16px;
  }
}

/* Navigation */
.nav {
  display: none;
}

.nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  box-shadow: 0 5px 20px var(--shadow);
  padding: 20px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 10px 0;
  display: block;
}

.nav-link:hover {
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7em;
  transition: transform var(--transition);
}

.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  background: var(--bg);
  padding: 10px 0 10px 20px;
  list-style: none;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item a {
  display: block;
  padding: 8px 0;
  color: var(--text-light);
}

.dropdown-item a:hover {
  color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Header CTA */
.header-cta {
  display: none;
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  background-image: linear-gradient(135deg, rgba(102,126,234,0.92) 0%, rgba(118,75,162,0.92) 100%), url('/assets/images/photos/taiwan-hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

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

/* Quick Summary Table */
.quick-summary {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin: 30px 0;
}

.quick-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table tr {
  border-bottom: 1px solid var(--border);
}

.summary-table tr:last-child {
  border-bottom: none;
}

.summary-table th,
.summary-table td {
  padding: 12px 0;
  text-align: left;
}

.summary-table th {
  color: var(--text-light);
  font-weight: 500;
  width: 40%;
}

.summary-table td {
  font-weight: 600;
}

/* Sections */
.section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--shadow);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-title a {
  color: var(--text);
}

.card-title a:hover {
  color: var(--primary);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.card-price {
  font-weight: 700;
  color: var(--secondary);
}

/* Content */
.content {
  max-width: 800px;
  margin: 0 auto;
}

.content h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--text);
}

.content h3 {
  font-size: 1.25rem;
  margin: 30px 0 15px;
  color: var(--text);
}

.content p {
  margin-bottom: 20px;
}

.content ul,
.content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.content li {
  margin-bottom: 10px;
}

/* Ticket Comparison */
.ticket-comparison {
  overflow-x: auto;
  margin: 30px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: left;
  border: 1px solid var(--border);
}

.comparison-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: var(--bg-light);
}

.comparison-table .highlight {
  background: rgba(0, 184, 148, 0.1);
}

/* Expert Tips */
.expert-tip {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 4px solid var(--secondary);
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.expert-tip h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--secondary-dark);
}

/* FAQ Section */
.faq-section {
  margin: 40px 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: var(--bg);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Related Activities */
.related-activities {
  background: var(--bg-light);
  padding: 50px 0;
  margin-top: 50px;
}

/* Klook Widget Container */
.widget-container {
  margin: 40px 0;
  padding: 20px 0;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: var(--text-light);
}

.breadcrumb-item a {
  color: var(--text-light);
}

.breadcrumb-item:last-child a {
  color: var(--text);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-contact a {
  color: var(--accent);
}

/* Disclaimer */
.disclaimer {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 30px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.disclaimer strong {
  color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* City Hub Page */
.city-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.city-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.city-hero .container {
  position: relative;
  z-index: 1;
  color: white;
}

/* All Activities Page */
.activities-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.activities-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.activity-item:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 20px var(--shadow);
}

.activity-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.activity-icon span {
  font-size: 1.5rem;
}

.activity-info {
  flex: 1;
}

.activity-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.activity-location {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Tech Pages */
.tech-page {
  padding: 60px 0;
}

.tech-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.tech-page h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
}

.tech-page p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activities-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }

  .nav-list {
    flex-direction: row;
    gap: 30px;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg);
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: var(--radius);
    padding: 15px 0;
    display: none;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-item a {
    padding: 10px 20px;
  }

  .header-cta {
    display: block;
  }

  .hero {
    padding: 100px 0;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .activities-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 80px 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
