/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Global styles for Triple Take */
body {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

/* Override for puzzle view */
body.puzzle-view {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Landing page container styles */
.landing-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.2);
  padding: 48px 32px 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .landing-container {
    margin-left: 10px;
    margin-right: 10px;
  }
}

.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 16px 0;
  color: #1e3c72;
  letter-spacing: 2px;
}

.description {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 32px;
  text-align: left;
}

.tagline {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
  font-style: italic;
}

.how-to-play {
  text-align: left;
  margin-bottom: 32px;
}

.how-to-play h2 {
  font-size: 1.4rem;
  color: #1e3c72;
  margin: 0 0 16px 0;
}

.how-to-play ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.how-to-play li {
  margin-bottom: 8px;
}

.instructions p {
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.start-btn {
  background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.12);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.start-btn:hover {
  background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%);
  transform: translateY(-2px) scale(1.03);
}

/* Action buttons container */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-puzzles-message {
  color: #666;
  font-style: italic;
  margin: 0;
}

.past-puzzles-btn {
  background: rgba(30, 60, 114, 0.1);
  color: #1e3c72;
  border: 2px solid #1e3c72;
  border-radius: 8px;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.past-puzzles-btn:hover {
  background: rgba(30, 60, 114, 0.15);
  transform: translateY(-2px) scale(1.03);
}

/* Puzzle index page styles */
.puzzle-index-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.2);
  padding: 48px 32px 40px 32px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.puzzle-index-container .header h1 {
  margin-bottom: 8px;
}

.puzzle-index-container .header h2 {
  font-size: 1.8rem;
  color: #1e3c72;
  margin: 0 0 32px 0;
}

.back-link {
  text-align: left;
  margin-bottom: 32px;
}

.back-btn {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-btn:hover {
  color: #2a5298;
}

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

.puzzle-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 60, 114, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.puzzle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 60, 114, 0.15);
}

.puzzle-number {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1e3c72;
  margin-bottom: 8px;
}

.puzzle-date {
  color: #666;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.play-btn {
  background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}

.play-btn:hover {
  background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%);
  transform: translateY(-1px);
}

.no-puzzles {
  text-align: center;
  padding: 48px 24px;
  color: #666;
}

.no-puzzles p {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .puzzle-index-container {
    margin: 10px;
    padding: 32px 24px;
  }

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

  .action-buttons {
    gap: 12px;
  }
}