/* Core layout and typography */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding-top: 60px;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Logo container and image */
.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-logo img {
  max-height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

nav {
  background: #222;
  padding: 5px 5px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid #444;
}

nav a {
  color: #fff;
  margin: 0 5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: #222;
}

ul {
  padding-left: 20px;
  margin-bottom: 1em;
}

ul li {
  margin-bottom: 0.5em;
}

a {
  color: #1a73e8;
  transition: color 0.2s ease;
}

a:hover {
  color: #0c58b5;
}

footer {
  background-color: #f2f2f2;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 14px;
  padding: 20px 10px;
  margin-top: 40px;
  text-align: center;
}

footer p {
  margin: 0 0 10px;
}

footer li {
  list-style: none;
  display: inline;
  margin: 0 10px;
}

footer a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #000;
}

footer i {
  margin-right: 5px;
}


.share-links a {
  display: inline-block;
  margin: 8px;
  text-decoration: none;
  color: #0077cc;
  font-size: 14px;
}

.share-links a:hover {
  color: #005fa3;
}

.adsense {
  margin: 16px auto;
  padding: 6px 0;
  text-align: center;
  border: 1px dashed #ccc;
  background-color: #fafafa;
  position: relative;
  max-width: 728px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  min-height: 40px;
  /* Ensures minimal vertical height */
  overflow: hidden;
  width: 100%;
  min-width: 300px;
}

.adsense::before {
  content: "Advertisement";
  position: absolute;
  top: -10px;
  left: 12px;
  background: #ffd0d0;
  color: #666;
  font-size: 12px;
  padding: 1px 6px;
  font-family: sans-serif;
  border-radius: 3px;
  /* REMOVE or update this ↓ */
  width: auto;
  min-width: 20px;
  max-width: 150px;
  white-space: nowrap;
}


.question {
  margin: 40px 0;
  padding: 15px;
  background: #f1f1f1;
  border-left: 5px solid #2980b9;
  border-radius: 5px;
  margin-bottom: 15px;
}

.answer {
  margin-top: 10px;
  display: block;
  color: green;
  font-weight: bold;
}

.answer a {
  color: #1a73e8;
  text-decoration: underline;
}

.share-buttons {
  text-align: center;
  margin: 40px 0 20px;
}

.share-buttons a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.whatsapp {
  background-color: #25d366;
}

.telegram {
  background-color: #25d366;
}

.twitter {
  background-color: #1da1f2;
}

.share-buttons a.whatsapp {
  background-color: #25D366;
  color: white;
}

.share-buttons a.telegram {
  background-color: #0088cc;
  color: white;
}

.share-icons {
  margin: 5px 5px 5px;
}

.share-icons a {
  margin-right: 12px;
  margin-left: 5px;
  font-size: 18px;
  text-decoration: none;
}

.share-icons i {
  transition: transform 0.2s;
}

.share-icons a:hover i {
  transform: scale(1.2);
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 5px 0 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.output {
  background: #e6f3ff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  word-wrap: break-word;
}

button {
  background-color: #0066cc;
  color: #fff;
  font-size: 14px;
  padding: 6px 6px 6px 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto;
  min-width: 90px;
  box-sizing: border-box;
}

button:hover {
  background-color: #005bb5;
  transform: translateY(-1px);
}

button:active {
  background-color: #004999;
  transform: translateY(1px);
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.4);
}

.filter-buttons {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-buttons button {
  padding: 8px 16px;
  font-size: 16px;
  background: #ff4e4e;
  border: 1px solid #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.spinner {
  text-align: center;
  padding: 20px;
  display: none;
}

#loadingSpinner {
  text-align: center;
  display: none;
}

#loadingSpinner img {
  width: 36px;
  height: 36px;
}

.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination button {
  margin: 0 5px;
  padding: 8px 12px;
  background: #ff4e4e;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button.active {
  background: #0077cc;
  color: #fff;
  border-color: #0077cc;
}

.result {
  font-weight: bold;
  margin-top: 5px;
}

.image-placeholder {
  text-align: center;
  margin-top: 20px;
  /* space below the headline */
}

.image-placeholder img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  /* optional styling */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* optional shadow */
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
    text-align: center;
  }
  h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #222;
    text-align: center;
  }
}