/* Styles for XTRA PR71 Router Controller website */

/* Common styles */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
}

header {
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
  padding-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: #f5f5f5;
  color: #004499;
}

body.dark-mode nav a:hover {
  background-color: #333;
}

h1 {
  color: #222;
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  color: #444;
  font-size: 1.8rem;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
}

.subtitle {
  color: #0066cc;
  font-size: 1.2rem;
  margin-top: -0.8rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

body.dark-mode .subtitle {
  color: #66aaff;
}

footer {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 25px;
  font-size: 0.9em;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer p {
  margin-bottom: 8px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  color: #24292e;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
  margin: 15px 0;
}

.github-link:hover {
  background-color: #f0f3f6;
  border-color: #d0d7de;
}

body.dark-mode .github-link {
  background-color: #333;
  border-color: #444;
  color: #e6e6e6;
}

body.dark-mode .github-link:hover {
  background-color: #3a3a3a;
  border-color: #555;
}

/* Feature graphic hero */
.feature-graphic {
  width: 100%;
  border-radius: 8px;
  margin: 0 0 1.8rem;
  display: block;
}

/* Home page specific styles */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.feature-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-top: 0;
  color: #0066cc;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.cta-button {
  display: inline-block;
  background-color: #0066cc;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 102, 0.2);
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 102, 0.3);
}

/* Privacy Policy specific styles */
.privacy-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.privacy-page h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #444;
}

.privacy-page section {
  margin-bottom: 2rem;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid #eee;
}

.privacy-page section:last-child {
  border-bottom: none;
}

.privacy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  list-style-type: disc;
}

.privacy-page li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.effective-date {
  font-style: italic;
  color: #666;
  margin-bottom: 1.5rem;
  display: block;
  padding: 0;
  border-left: none;
}

body.dark-mode .privacy-page h2 {
  color: #eee;
  border-bottom-color: #444;
}

body.dark-mode .privacy-page h3 {
  color: #ddd;
}

body.dark-mode .privacy-page section {
  border-bottom-color: #444;
}

body.dark-mode .alpha-notice {
  background-color: #2a2a2a;
}

/* Remove grid layout for privacy policy */
.privacy-grid {
  display: block;
}

.privacy-grid section {
  margin-bottom: 2rem;
}

/* Add grid layout for smaller privacy sections */
@media (min-width: 768px) {
  .privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .privacy-grid section {
    margin-bottom: 0;
  }

  .privacy-grid + section {
    margin-top: 25px;
  }
}

/* Theme toggle button styles */
.theme-toggle {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #222;
  color: #eee;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #fff;
}

body.dark-mode .feature-card {
  background-color: #333;
  border-color: #555;
}

body.dark-mode a:not(.cta-button) {
  color: #66aaff;
}

body.dark-mode .theme-toggle {
  background-color: #555;
  color: #fff;
  border-color: #777;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle:hover {
  background-color: #666;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Alpha state styling */
.alpha-banner {
  background-color: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid #ffeeba;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.alpha-icon {
  font-size: 1.2rem;
}

.version-tag {
  display: inline-block;
  background-color: #0066cc;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

.alpha-notice {
  background-color: #f8f9fa;
  border-left: 4px solid #0066cc;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.alpha-notice p {
  margin: 0;
}

body.dark-mode .alpha-banner {
  background-color: #352e1c;
  color: #ffdb7d;
  border-left-color: #665c33;
}

body.dark-mode .version-tag {
  background-color: #144a80;
}

body.dark-mode .alpha-notice {
  background-color: #2a2a2a;
}

/* Feedback options styling */
.feedback-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 20px 0 30px;
}

.feedback-option {
  background-color: rgba(240, 246, 252, 0.6);
  border-left: 3px solid #0066cc;
  padding: 16px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.feedback-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feedback-option h3 {
  margin-top: 0;
  color: #0066cc;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feedback-option p {
  margin-bottom: 0;
}

body.dark-mode .feedback-option {
  background-color: rgba(30, 46, 62, 0.6);
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

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