/* Lim You Fan Page - Shared Stylesheet */
/* Mobile-first, responsive, fast-loading */

:root {
  --color-primary: #FFD700;
  --color-secondary: #000000;
  --color-accent: #CC0000;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e0e0e0;
  --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --nav-height: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #990000; text-decoration: underline; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--color-secondary); color: white;
  padding: 8px 16px; z-index: 100;
}
.skip-link:focus { top: 0; }

/* Navigation */
nav {
  background: var(--color-secondary);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--nav-height);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
.logo span { color: white; font-weight: 400; font-size: 0.85rem; display: block; margin-top: -4px; }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  color: white; font-size: 0.9rem; font-weight: 500;
  padding: 6px 12px; border-radius: 4px;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-links a.active { background: var(--color-primary); color: var(--color-secondary); }

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: white; font-size: 1.5rem; cursor: pointer;
}

/* Main content */
main { min-height: calc(100vh - var(--nav-height) - 200px); }

.container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}

.section { padding: 48px 0; }
.section-alt { background: var(--color-bg-alt); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white; padding: 60px 0 50px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: url('../images/limyou-hero.webp') center/cover no-repeat;
  opacity: 0.25;
}
.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 600px; }
.hero h1 {
  font-family: var(--font-heading); font-size: 2.8rem;
  font-weight: 900; line-height: 1.1; margin-bottom: 12px;
  color: var(--color-primary);
}
.hero .tagline {
  font-size: 1.25rem; color: #ccc; margin-bottom: 24px;
  font-weight: 300;
}
.hero-stats {
  display: flex; gap: 32px; margin-bottom: 28px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.2rem; font-weight: 900; color: var(--color-primary);
  display: block; line-height: 1;
}
.stat-label { font-size: 0.8rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

.btn {
  display: inline-block; padding: 12px 28px;
  background: var(--color-primary); color: var(--color-secondary);
  font-weight: 700; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem;
}
.btn:hover { background: #e6c200; text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--color-primary);
  border: 2px solid var(--color-primary); margin-left: 12px;
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-secondary); }

/* Headings */
h2 {
  font-family: var(--font-heading); font-size: 1.9rem;
  font-weight: 800; margin-bottom: 20px; color: var(--color-secondary);
}
h3 {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 700; margin: 24px 0 12px; color: var(--color-secondary);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 24px;
}
.card {
  background: white; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p { color: var(--color-text-light); font-size: 0.95rem; }

/* Quote block */
.quote-block {
  background: var(--color-secondary); color: white;
  padding: 32px; border-radius: 12px; margin: 24px 0;
  position: relative;
}
.quote-block::before {
  content: '"'; font-size: 4rem; color: var(--color-primary);
  position: absolute; top: 8px; left: 16px; opacity: 0.4;
  font-family: Georgia, serif; line-height: 1;
}
.quote-block p {
  font-size: 1.15rem; font-style: italic; position: relative; z-index: 1;
  padding-left: 20px;
}
.quote-block cite {
  display: block; margin-top: 12px; font-size: 0.9rem;
  color: #aaa; font-style: normal;
}

/* Timeline */
.timeline { position: relative; padding-left: 28px; margin: 24px 0; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -26px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid white;
  box-shadow: 0 0 0 2px var(--color-primary);
}
.timeline-date {
  font-size: 0.8rem; font-weight: 700; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 1px;
}
.timeline-item h4 { font-size: 1.1rem; margin: 4px 0 6px; }
.timeline-item p { color: var(--color-text-light); font-size: 0.95rem; }

/* Stats table */
.stats-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  background: white; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stats-table th, .stats-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border);
}
.stats-table th {
  background: var(--color-secondary); color: white;
  font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table td { font-size: 0.95rem; }
.stats-table .highlight { font-weight: 700; color: var(--color-accent); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px; margin-top: 24px;
}
.gallery-item {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  aspect-ratio: 4/3; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white; padding: 24px 12px 12px;
  font-size: 0.85rem;
}

/* News embed */
.news-embed {
  background: white; border-left: 4px solid var(--color-primary);
  padding: 20px; margin: 16px 0; border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.news-embed h4 { font-size: 1.05rem; margin-bottom: 8px; }
.news-embed p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 8px; }
.news-embed .source { font-size: 0.8rem; color: #888; }

/* Video container */
.video-container {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 12px; margin: 24px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

/* Goal timeline */
.goal-list {
  list-style: none; margin: 20px 0;
}
.goal-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: white;
  border-radius: 8px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.goal-minute {
  background: var(--color-primary); color: var(--color-secondary);
  font-weight: 800; padding: 6px 12px; border-radius: 6px;
  font-size: 0.9rem; min-width: 60px; text-align: center;
}
.goal-detail { flex: 1; }
.goal-detail strong { color: var(--color-secondary); }
.goal-type {
  font-size: 0.8rem; color: var(--color-accent);
  font-weight: 600; text-transform: uppercase;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem; color: var(--color-text-light);
  margin-bottom: 20px; padding-top: 16px;
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: #999; margin: 0 6px; }

/* Disclaimer banner */
.disclaimer {
  background: #fff8e1; border: 1px solid #ffe082;
  color: #5d4037; padding: 12px 16px; border-radius: 8px;
  font-size: 0.85rem; margin: 24px 0;
}
.disclaimer strong { color: #e65100; }

/* Footer */
footer {
  background: var(--color-secondary); color: #aaa;
  padding: 40px 0 24px; font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-grid h4 { color: white; font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: #aaa; }
.footer-grid a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid #333; padding-top: 20px;
  text-align: center; font-size: 0.8rem; color: #777;
}
.footer-bottom a { color: #999; }

/* Legal pages */
.legal-content h2 { margin-top: 32px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { margin: 12px 0 12px 24px; }
.legal-content li { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 32px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .goal-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 10px; display: block; text-align: center; }
}

/* Print styles */
@media print {
  nav, footer, .video-container, .btn { display: none; }
  body { font-size: 12pt; color: black; }
  a { text-decoration: underline; color: black; }
}
