/* --- Base & Layout Styles --- */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

header {
  background-color: #000;
  padding: 20px 0;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 28px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  margin: 0 auto;
  padding: 40px 20px;
  max-width: 900px;
  text-align: left;
}

p {
  margin-bottom: 15px;
  line-height: 1.6;
}

a {
  color: #00bfff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background-color: #000;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #aaa;
  margin-top: auto;
  width: 100%;
}

/* --- Headings --- */
h1 {
  font-size: 44px;
  color: #00bfff;
  margin-bottom: 20px;
  text-align: center;
}

h2 {
  font-size: 28px;
  color: #00bfff;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: left;
}

h3 {
  font-size: 22px;
  color: #00ffff;
  margin-top: 30px;
  margin-bottom: 10px;
  text-align: left;
}

/* --- Warning Banner Styles --- */
.warning-banner {
  background-color: #8B0000;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.warning-banner .warning-icon {
  font-size: 1.5em;
  margin-right: 10px;
  line-height: 1;
}
.warning-banner .close-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-left: 15px;
  padding: 0 10px;
}
.warning-banner p {
  margin: 0;
  padding: 0 10px;
}

/* --- Cookie Consent Banner Styles --- */
#cookieConsentBanner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  z-index: 2000;
  font-size: 14px;
  line-height: 1.5;
}
#cookieConsentBanner p {
  margin: 0 0 10px 0;
  padding: 0;
}
#cookieConsentBanner p a {
  color: #00bfff;
  text-decoration: none;
}
#cookieConsentBanner button {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}
#cookieConsentBanner button:hover {
  background-color: #0099cc;
}
#cookieConsentBanner button#declineCookies {
  background-color: #555;
}
#cookieConsentBanner button#declineCookies:hover {
  background-color: #777;
}

/* --- Page Specific Styles --- */
/* index.html */
.main-intro p {
  font-size: 1.2em;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  text-align: center;
}
.quote {
  font-style: italic;
  font-size: 1.1em;
  color: #aaa;
  margin-bottom: 5px;
}
.quote-author {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 30px;
}

/* --- Spark Page Styles (New) --- */
.generator-section {
  text-align: center;
  margin-bottom: 40px;
}

.generator-section .section-title {
  margin-bottom: 10px;
}

.generator-section .section-description {
  margin-bottom: 20px;
}

.feedback-section {
  text-align: center;
  margin-top: 40px;
  display: none; /* Сначала скрываем этот блок */
  animation: fadeIn 0.5s ease-in-out;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.feedback-buttons button {
  padding: 10px 25px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.feedback-buttons button.helpful-btn {
  background-color: #4CAF50; /* Зеленый для "Да" */
  color: white;
}

.feedback-buttons button.unhelpful-btn {
  background-color: #F44336; /* Красный для "Нет" */
  color: white;
}

.feedback-buttons button:hover {
  opacity: 0.8;
}

.counter {
  font-size: 1.2em;
  font-weight: bold;
  color: #00bfff;
  margin-top: 10px;
}

/* Анимация плавного появления */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
  header h1 {
    font-size: 24px;
  }
  nav a {
    margin: 0 8px;
    font-size: 14px;
  }
  main {
    padding: 20px 15px;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 18px;
  }
  p {
    font-size: 14px;
  }
}
