/*
 * Stylesheet for Bermongkol lucky number shop
 * This file defines the visual appearance of the website.
 */

/* Root colour palette */
:root {
  --primary: #ffc107;   /* Warm golden tone for accents */
  --secondary: #0b3558; /* Deep blue for headers and footers */
  --light: #fafafa;     /* Light background */
  --text: #333333;      /* Primary text colour */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
}

/* Container to center content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.navbar .logo a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.navbar ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s ease;
}
.navbar ul li a:hover {
  color: var(--primary);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #0b3558 0%, #102a43 100%);
  color: #ffffff;
  padding: 120px 0 80px;
  margin-top: 60px; /* space for fixed navbar */
  text-align: center;
}
.hero-content h2 {
  margin: 0 0 10px;
  font-size: 2.5rem;
  font-weight: 600;
}
.hero-content p {
  margin: 0 0 20px;
  font-size: 1.125rem;
  font-weight: 300;
}
.search-bar {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.search-bar input,
.search-bar select {
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  outline: none;
  min-width: 200px;
}
.search-bar input {
  flex: 1 1 250px;
}

/* Numbers listing */
.numbers-section {
  padding: 60px 0;
}
.numbers-section h3 {
  margin-bottom: 20px;
  font-size: 1.75rem;
  text-align: center;
}
.numbers-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.card h4 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
}
.card .detail {
  margin: 4px 0;
  font-size: 0.875rem;
  color: var(--text);
}
.card button {
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--secondary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}
.card button:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* Guide and About sections */
.guide-section,
.about-section {
  background: #f5f5f5;
  padding: 60px 0;
}
.guide-section h3,
.about-section h3 {
  margin-bottom: 20px;
  font-size: 1.75rem;
  text-align: center;
}
.guide-section p,
.about-section p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1rem;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 0.875rem;
}