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

body {
  font-family: Inter, sans-serif;
  background: #f4f6f8;
  padding: 30px;
}

.container {
  max-width: 1000px;
  margin: auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #0A66C2;
}

h1 {
  color: #0A66C2;
  margin-bottom: 10px;
}

.generator-card,
.results-card,
.seo-content,
.faq {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

select,
input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

button {
  background: #0A66C2;
  color: white;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

#results {
  margin-top: 20px;
  line-height: 1.8;
  white-space: pre-wrap;
}

#copyBtn {
  margin-top: 20px;
}

.seo-content p,
.faq p {
  margin-top: 15px;
  line-height: 1.8;
}

.faq h3 {
  margin-top: 20px;
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }
}
#headlineStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.stat-box {
  background: #f7f9fc;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.stat-box p {
  font-size: 24px;
  font-weight: 700;
  color: #0A66C2;
}

@media (max-width: 768px) {
  #headlineStats {
    grid-template-columns: 1fr;
  }
}

.headline-item {
  background: #f7f9fc;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.headline-item p {
  flex: 1;
  line-height: 1.6;
}

.copyHeadline {
  white-space: nowrap;
}

@media (max-width: 768px) {

  .headline-item {
    flex-direction: column;
    align-items: stretch;
  }

}

.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checkbox-group input {
  width: auto;
}

.headline-buttons {
  display: flex;
  gap: 10px;
}

.dark-mode {
  background: #121212;
  color: white;
}

.dark-mode .generator-card,
.dark-mode .results-card,
.dark-mode .seo-content,
.dark-mode .faq,
.dark-mode .headline-item,
.dark-mode .stat-box {
  background: #1e1e1e;
  color: white;
}

.dark-mode input,
.dark-mode select {
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
}

.history-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.history-item {
  background: #f7f9fc;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.dark-mode .history-item {
  background: #2a2a2a;
}

