:root {
  --primary: #d10025;
  --secondary: #222;
  --accent: #ffc300;
  --bg: #f7f8fa;
  --text: #222;
  --border-radius: 8px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  background: var(--primary);
  color: #fff;
  padding: 2rem 0 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.92;
}

.container {
  max-width: 700px;
  margin: auto;
  padding: 0 1rem;
}

main {
  margin-top: 2rem;
}

#tool-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

form#grabber-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

form#grabber-form input[type="url"] {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

form#grabber-form input[type="url"]:focus {
  border-color: var(--primary);
}

form#grabber-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

form#grabber-form button:hover {
  background: var(--accent);
  color: var(--primary);
}

#thumbnail-results {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

#thumbnail-results div {
  background: var(--bg);
  border-radius: var(--border-radius);
  padding: 0.7rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

#thumbnail-results img {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  border: 1px solid #eee;
}

#thumbnail-results a {
  display: inline-block;
  margin-top: 0.3rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.2s;
}

#thumbnail-results a:hover {
  background: var(--accent);
  color: var(--primary);
}

.ad-container {
  margin: 2rem 0;
  text-align: center;
}

section {
  margin-bottom: 2.5rem;
}

#how-to-use ol {
  margin-left: 1.2rem;
}

#social-share .social-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

#social-share a {
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s;
  display: inline-block;
}

#social-share .twitter { background: #1da1f2; }
#social-share .facebook { background: #1877f3; }
#social-share .linkedin { background: #0077b5; }
#social-share .whatsapp { background: #25d366; color: #222; }

#faq .faq-entry {
  margin-bottom: 1.1rem;
}

#faq h3 {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
  color: var(--primary);
}

footer {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.98rem;
  border-top: 2px solid var(--accent);
}

@media (max-width:600px) {
  #thumbnail-results {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 0.3rem;
  }
  form#grabber-form {
    flex-direction: column;
    gap: 0.7rem;
  }
}
