/* Touti Game Support Website - Design System
   Palette derived from: Logo_720.png, background6.jpg, Enhanced suit icons
   Typography: Cinzel (headings) + Lato (body) */

:root {
  /* Accent Colors */
  --gold: #D4A017;
  --gold-light: #E8B830;
  --gold-glow: rgba(212, 160, 23, 0.3);
  --crimson: #B22234;
  --crimson-light: #E85A6B;
  --steel-blue: #4A7FB5;
  --steel-blue-light: #6BA3D6;
  --green: #388E3C;

  /* Dark Tones */
  --warm-black: #1A1410;
  --dark-walnut: #2C1E12;
  --medium-walnut: #4A3525;

  /* Light Tones */
  --parchment: #F5EDE0;
  --ivory: #FDF8F0;
  --aged-parchment: #E8DFD0;

  /* Text */
  --text-primary: #2D2218;
  --text-secondary: #6B5B4E;
  --text-on-dark: #F5EDE0;
  --text-on-dark-muted: #A89880;

  /* Shadows */
  --shadow: 0 2px 8px rgba(44, 30, 18, 0.12);
  --shadow-hover: 0 6px 20px rgba(44, 30, 18, 0.18);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--parchment);
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

/* Header and Navigation */
header {
  background-color: var(--warm-black);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold);
}

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

.logo h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Language Switcher */
.lang-switch a {
  border: 1px solid var(--gold);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--gold) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switch a:hover {
  background-color: var(--gold);
  color: var(--warm-black) !important;
}

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

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

/* Hero Section */
.hero {
  background-image: url('../images/background6.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,0.6) 0%, rgba(44,30,18,0.85) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-badge img {
  height: 50px;
  width: auto;
  display: block;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--warm-black);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
  background-color: var(--gold-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-on-dark);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background-color: rgba(212, 160, 23, 0.15);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Section Styling */
section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Feature Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--ivory);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--gold);
  text-align: center;
}

.feature-card:nth-child(2) {
  border-top-color: var(--crimson);
}

.feature-card:nth-child(3) {
  border-top-color: var(--steel-blue);
}

.feature-card:nth-child(4) {
  border-top-color: var(--green);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 1rem;
}

.feature-icon-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-card p {
  font-weight: 300;
}

/* Video Section */
.video-section {
  background: var(--dark-walnut);
  padding: 4rem 2rem;
  text-align: center;
}

.video-section h2 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.video-section p {
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-dark);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* About Section */
.about-section {
  background: var(--dark-walnut);
  padding: 4rem 2rem;
  text-align: center;
}

.about-section h2 {
  color: var(--gold);
  letter-spacing: 2px;
}

.about-section p {
  color: var(--text-on-dark-muted);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.suit-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.suit-icons img {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s;
}

.suit-icons img:hover {
  transform: scale(1.15);
}

/* Screenshot Section */
.screenshot-container {
  text-align: center;
  margin: 3rem 0;
}

.screenshot-container img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* FAQ Section */
.faq-item {
  background: var(--ivory);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 1.125rem;
}

/* Rules Page Specific */
.rule-section {
  background: var(--ivory);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card-examples {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1.5rem 0;
}

.card-examples img {
  height: 150px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-value-group {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--parchment);
  border-radius: 12px;
}

.card-value-group h4 {
  margin-bottom: 1rem;
  color: var(--gold);
  text-align: center;
}

.card-value-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.card-value-row img {
  height: 120px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.zero-value-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.suit-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.suit-group-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.suit-cards {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.suit-cards img {
  height: 100px;
  width: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.deck-hand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  position: relative;
  min-height: 150px;
}

.suit-hand {
  display: flex;
  margin: 1.5rem auto;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  overflow: visible;
  padding: 0 20px;
}

.suit-hand img {
  height: 140px;
  width: auto;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-left: -50px;
  transition: transform 0.2s ease;
}

.suit-hand img:first-child {
  margin-left: 0;
}

.suit-hand img:hover {
  transform: translateY(-10px) scale(1.05);
  z-index: 10;
}

@media (max-width: 1024px) {
  .suit-hand {
    max-width: 700px;
  }
  .suit-hand img {
    height: 120px;
    margin-left: -45px;
  }
}

@media (max-width: 768px) {
  .suit-hand {
    max-width: 550px;
  }
  .suit-hand img {
    height: 100px;
    margin-left: -40px;
  }
}

@media (max-width: 640px) {
  .suit-hand {
    max-width: 450px;
    padding: 0 10px;
  }
  .suit-hand img {
    height: 80px;
    margin-left: -32px;
  }
}

@media (max-width: 480px) {
  .suit-hand {
    max-width: 350px;
  }
  .suit-hand img {
    height: 65px;
    margin-left: -26px;
  }
}

@media (max-width: 380px) {
  .suit-hand {
    max-width: 300px;
  }
  .suit-hand img {
    height: 55px;
    margin-left: -22px;
  }
}

.suit-symbols {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.suit-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.suit-symbol img {
  height: 80px;
  width: auto;
}

.suit-symbol span {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--text-secondary);
}

/* List Styling */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Legal Pages */
.legal-content {
  background: var(--ivory);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.legal-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
}

.legal-content a {
  color: var(--steel-blue);
  text-decoration: none;
  font-weight: 600;
}

.legal-content a:hover {
  text-decoration: underline;
  color: var(--steel-blue-light);
}

.legal-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Email Verification Pages */
.message-container {
  text-align: center;
  padding: 4rem 2rem;
}

.message-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-weight: 700;
}

.message-icon.success {
  color: var(--green);
  background: rgba(56, 142, 60, 0.1);
  border: 3px solid var(--green);
}

.message-icon.error {
  color: var(--crimson);
  background: rgba(178, 34, 52, 0.1);
  border: 3px solid var(--crimson);
}

.message-icon.reset-icon {
  color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Password Reset Form */
.reset-form-wrapper {
  max-width: 450px;
  margin: 2rem auto 0;
  text-align: left;
}

.reset-password-form {
  background: var(--ivory);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.reset-password-form .form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--aged-parchment);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reset-password-form .form-group input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.message-container h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--text-primary);
}

.message-container p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Contact Info */
.contact-info {
  background: var(--ivory);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--gold);
}

.contact-info a {
  color: var(--steel-blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
  color: var(--steel-blue-light);
}

/* Page Header (for inner pages) */
.page-title-section {
  background: var(--dark-walnut);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 2px solid var(--medium-walnut);
}

.page-title-section h1 {
  color: var(--gold);
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.page-title-section p {
  color: var(--text-on-dark-muted);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--warm-black);
  color: var(--text-on-dark);
  padding: 3rem 2rem 1rem;
  margin-top: 0;
  border-top: 2px solid var(--gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section p {
  color: var(--text-on-dark-muted);
}

.footer-section a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--medium-walnut);
  color: var(--text-on-dark-muted);
}

/* Feedback Section */
.feedback-section {
  background: var(--parchment);
  padding: 4rem 2rem;
  text-align: center;
}

.feedback-container {
  max-width: 600px;
  margin: 0 auto;
}

.feedback-section h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feedback-section > .feedback-container > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.feedback-form {
  text-align: left;
  background: var(--ivory);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--aged-parchment);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group input[type="file"] {
  display: block;
  padding: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.optional {
  font-weight: 400;
  color: var(--text-secondary);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
}

.required {
  color: var(--crimson);
}

.turnstile-group {
  display: flex;
  justify-content: center;
}

.feedback-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.feedback-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Honeypot - hidden from users, visible to bots */
.form-field-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
  font-size: 0.95rem;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(56, 142, 60, 0.1);
  color: var(--green);
  border: 1px solid var(--green);
}

.form-status.error {
  display: block;
  background: rgba(178, 34, 52, 0.1);
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.feedback-alternative {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--aged-parchment);
}

.feedback-alternative p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.email-link {
  font-family: 'Cinzel', serif;
  color: var(--steel-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: var(--steel-blue-light);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo img {
    height: 55px;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--warm-black);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-dark);
    border-top: 1px solid var(--medium-walnut);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-badge img {
    height: 45px;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

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

  .card-examples img {
    height: 120px;
  }

  .suit-symbol img {
    height: 60px;
  }

  .container, .container-narrow {
    padding: 2rem 1rem;
  }

  .suit-icons {
    gap: 1rem;
  }

  .suit-icons img {
    height: 40px;
  }

  .page-title-section {
    padding: 2rem 1rem;
  }

  .page-title-section h1 {
    font-size: 1.8rem;
  }

  .feedback-section {
    padding: 2rem 1rem;
  }

  .feedback-form {
    padding: 1.5rem;
  }

  .email-link {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .card-examples img {
    height: 100px;
  }

}
