/* Common styles for iShogi support site */

:root {
  --color-primary: #007aff;
  --color-primary-hover: #0062cc;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-medium: #444;
  --color-text-lightest: #aaa;
  --color-bg: #f9f9f9;
  --color-white: #fff;
  --color-border: #eee;
  --color-border-dark: #ddd;
  --max-width: 800px;
  --spacing-unit: 1em;
  --border-radius: 22%;
  --border-radius-button: 8px;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  background: var(--color-bg);
}

/* Navigation */
nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-unit) 0;
  margin-bottom: 20px;
}

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

nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
}

/* Main container styles */
.container,
.legal-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* App icon */
.app-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  object-fit: cover;
  display: block;
  margin: 0 auto var(--spacing-unit);
}

/* Typography */
h1 {
  font-size: 24px;
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: 20px;
}

h2 {
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-text-medium);
}

p {
  margin-bottom: 15px;
}

p.description {
  color: var(--color-text-light);
  margin-bottom: 2em;
}

/* Lists */
ul {
  padding-left: 1.2em;
}

ol {
  padding-left: 25px;
}

li {
  margin-bottom: 10px;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Sections */
.feature,
.contact,
.site-info {
  margin-top: 2em;
}

.app-store-button {
  text-align: center;
  margin: 2em 0;
}

/* Screenshots */
.screenshots-section {
  margin-top: 0em;
  text-align: center;
}

.screenshots {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
}

.screenshot {
  max-width: var(--max-width);
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.screenshot:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .screenshots {
    flex-direction: column;
    gap: 15px;
  }

  .screenshot {
    max-width: 100%;
  }
}

/* Footer */
footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-light);
}

/* Date display */
.date {
  margin-top: 30px;
  font-size: 14px;
  color: var(--color-text-light);
}

/* Index page specific styles */
.hero-section {
  text-align: center;
  margin-bottom: 2em;
}

.hero-section h1 {
  border: none;
  text-align: center;
  margin-top: var(--spacing-unit);
}

.hero-section .description {
  text-align: center;
}

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

/* 404 page styles */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2em;
  text-align: center;
}

.error-container h1 {
  font-size: 3em;
  border: none;
}

.home-button {
  display: inline-block;
  margin-top: 1.5em;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius-button);
  font-weight: 500;
  transition: background-color 0.2s;
}

.home-button:hover {
  background-color: var(--color-primary-hover);
  text-decoration: none;
}
