/* Diecast Track - White Theme Design */

:root {
  /* White Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;

  /* Brand Colors */
  --brand-primary: #ff6b35;
  --brand-secondary: #f7931e;
  --brand-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Border & Shadow */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Status Colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
  z-index: 0;
}

.bg-gallery::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  backdrop-filter: blur(2px);
}

.landing-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.landing-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-icon {
  font-size: 48px;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
}

.brand-name {
  font-size: 36px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.headline {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.subheadline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Key Points */
.key-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.08);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.point-icon {
  font-size: 20px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 50px;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-primary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  font-size: 18px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Disclaimer */
.disclaimer {
  background: rgba(255, 107, 53, 0.06);
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 50px;
  text-align: center;
}

.disclaimer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.disclaimer-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features Section */
.features {
  margin-top: 60px;
}

.features h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.feature {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Landing Footer */
.landing-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.tagline {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.login-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.brand-icon-large {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
}

.login-brand h1 {
  font-size: 28px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.login-brand p {
  font-size: 15px;
  color: var(--text-secondary);
}

.login-form h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: white;
  transition: var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input::placeholder {
  color: var(--text-muted);
}

.login-info {
  margin-top: 24px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
}

.login-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.login-info p:last-child {
  margin-bottom: 0;
}

.login-success {
  text-align: center;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.login-success h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.login-success p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.email-display {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 16px 0;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
}

.link {
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.link:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* ==================== GALLERY PAGE ==================== */
.gallery-page {
  min-height: 100vh;
  background: var(--bg-secondary);
}

.nav-white {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.logo-white {
  font-size: 24px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition-fast);
}

.logo-white:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.gallery-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
}

.gallery-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gallery-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.filters-container {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-select {
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: white;
  cursor: pointer;
  transition: var(--transition-fast);
  min-width: 160px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.empty-gallery {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.3;
}

.empty-gallery h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-gallery p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.loading-state {
  text-align: center;
  padding: 80px 20px;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== FOOTER ==================== */
.footer-white {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
  margin-top: 60px;
}

.footer-white p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.small {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== UTILITY CLASSES ==================== */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.text-center {
  text-align: center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  .headline {
    font-size: 32px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-icon {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .login-box {
    padding: 32px 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .headline {
    font-size: 52px;
  }

  .subheadline {
    font-size: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
  }
}

/* ==================== NEW LANDING PAGE V2 ==================== */

.landing-page-v2 {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section with Large Photos */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  padding: 40px 20px;
  max-width: 800px;
}

.brand-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.brand-large .brand-icon {
  font-size: 48px;
}

.brand-large .brand-name {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-headline {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
}

/* Photo Gallery Showcase */
.gallery-showcase {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.photo-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-overlay {
  transform: translateY(0);
}

.photo-label {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Key Points Section */
.key-points-section {
  padding: 60px 0;
  background: white;
}

.key-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.key-point {
  text-align: center;
}

.key-point-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.key-point h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.key-point p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Notice Section */
.notice-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.notice-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 4px solid var(--brand-primary);
  border-radius: 12px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.notice-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.notice-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Footer */
.landing-footer {
  background: var(--text-primary);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.landing-footer p {
  margin: 8px 0;
}

.landing-footer .tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    height: 500px;
  }

  .brand-large .brand-icon {
    font-size: 36px;
  }

  .brand-large .brand-name {
    font-size: 36px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-hero {
    width: 100%;
  }
}
