/* Custom styles for Quick Web Tools */

/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap');

/* Apply Poppins as the primary font family */
* {
  font-family: 'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}
/* Main content area minimum width for better tool usability */
main {
  min-width: 640px; /* Ensures tools have adequate space, especially for games */
}

@media (max-width: 768px) {
  main {
    min-width: auto; /* Allow full width on mobile */
  }
}

/* Example: Card hover effect override */
.tool-card {
  transition: transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.15s cubic-bezier(0.4,0,0.2,1);
}
.tool-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

/* Header logo icon styles */
.header-logo-icon {
  min-width: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #3b82f6; /* Tailwind blue-500 */
  margin-right: 0.5rem;
}

/* Ensure nav title is bold and white */
nav .font-bold {
  color: #fff;
  font-weight: 700;
}

/* Add more custom styles as needed */

/* Buy Me a Coffee block styles */
.bmc-block {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 1.25rem;
  box-shadow: none;
  padding: 0.5rem 0;
  margin: 1.5rem auto 1.5rem auto;
  max-width: 700px;
  gap: 1.2rem;
}
.bmc-support-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9fafb;
}
.bmc-btn {
  display: flex;
  align-items: center;
  background: #ffdd00;
  color: #18181b;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 1rem;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.06);
  transition: transform 0.2s ease-out;
  border: none;
  outline: none;
  cursor: pointer;
}
.bmc-btn:hover {
  transform: translateY(-1px) scale(1.02);
}
.bmc-cup {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  line-height: 1;
}

@media (max-width: 600px) {
  .bmc-block {
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0;
    max-width: 98vw;
    margin: 1rem;
  }
  .bmc-support-text {
    text-align: center;
    font-size: 1rem;
  }
  .bmc-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.5rem 0;
  }
} 

/* --- How To Article Enhancements --- */
.howto-article-content h2,
.howto-article-content h3,
.howto-article-content h4 {
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: -0.01em;
}
.howto-article-content h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}
.howto-article-content h3 {
  font-size: 1.3rem;
  margin-top: 1.7rem;
  margin-bottom: 0.7rem;
}
.howto-article-content h4 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}
/* Wider content box for How To articles */
@media (min-width: 768px) {
  .howto-article-content {
    max-width: 48rem !important; /* 768px, wider than max-w-2xl */
    margin-left: auto;
    margin-right: auto;
  }
} 

/* --- CLS Improvements: Explicit icon sizing and aspect ratio for images --- */
.ph {
  display: inline-block;
  vertical-align: middle;
  /* Let font-size control icon size for flexibility */
}
.ai-badge {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  /* gradient background is set inline or via utility classes */
}
.ai-badge .ph-robot {
  font-size: 1.1rem;
}
.header-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo-icon .ph {
  font-size: 2rem;
}
img, .img-aspect {
  aspect-ratio: attr(width) / attr(height);
  display: block;
}
/* End CLS improvements */ 

@media (max-width: 600px) {
  .tool-card {
    padding: 1.25rem !important;
  }
} 

/* Footer styles */
.footer-main {
  background: #1f2937;
  border-top: 4px solid #3b82f6;
  box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.12);
}
.footer-logo-icon {
  min-width: 3rem;
  min-height: 3rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #3b82f6;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.15);
}
.footer-main nav a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-main nav a:hover {
  color: #60a5fa;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .footer-main .max-w-4xl {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-main nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
} 

/* Accessibility: Focus states for all interactive elements */
a, button, input, textarea, select {
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px #fbbf24, 0 0 0 6px #1f2937;
  border-color: #fbbf24 !important;
  z-index: 2;
}
/* Improve contrast for primary buttons */
button, .case-btn, .bmc-btn {
  color: #fff;
  background: #2563eb;
  border: none;
}
button:hover, .case-btn:hover, .bmc-btn:hover {
  background: #1d4ed8;
}
/* Improve link contrast */
a {
  color: #60a5fa;
}
a:hover {
  color: #fbbf24;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

/* Make tool card titles white */
.tool-card .font-semibold,
.tool-card .text-lg,
.tool-card .tool-title {
  color: #fff !important;
}

/* Make navigation links white */
nav a,
.main-nav a {
  color: #fff !important;
  transition: color 0.2s;
}
nav a:hover,
.main-nav a:hover {
  color: #60a5fa !important;
}
.border-blue-300 {
  border-color: #60a5fa !important; /* Tailwind blue-300 */
}
.border-green-400 {
  border-color: #4ade80 !important; /* Tailwind green-400 */
}
.border-blue-400 {
  border-color: #60a5fa !important; /* Tailwind blue-400 */
}
.border-amber-400 {
  border-color: #fbbf24 !important; /* Tailwind amber-400 */
}
.border-teal-400 {
  border-color: #2dd4bf !important; /* Tailwind teal-400 */
}
.border-pink-400 {
  border-color: #f472b6 !important; /* Tailwind pink-400 */
}
.border-purple-400 {
  border-color: #a78bfa !important; /* Tailwind purple-400 */
}

/* --- Enhanced Article Formatting (Spacing & TOC) --- */
.article-section {
  background: #f7fafc;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(59,130,246,0.08);
  border: 1.5px solid #e0e7ef;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin-bottom: 3.5rem;
  margin-top: 2.5rem;
}
.dark .article-section {
  background: #23293a;
  border-color: #334155;
}
.article-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #3b82f6;
}
.dark .article-section h2 {
  color: #60a5fa;
}
.article-section .icon {
  font-size: 2.2rem;
  vertical-align: middle;
}

.article-content {
  font-size: 1.18rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.article-section ul {
  margin-bottom: 2rem;
  margin-top: 1rem;
  padding-left: 2rem;
}
.article-section ul li {
  margin-bottom: 0.7rem;
  font-size: 1.08em;
}

/* --- Article & Blog Card Styles --- */
.card {
  background: #23293a;
  border-radius: 16px;
  border: 2px solid #334155;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 24px 0 rgba(59,130,246,0.10);
}
.card + .card {
  margin-top: 2rem;
}
h2.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 2rem;
  color: #60a5fa;
  line-height: 1.2;
  text-align: left;
}
p, .card p, .article-content {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.7rem;
  text-align: left;
}
ul, .card ul {
  margin-bottom: 1.7rem;
  margin-top: 1.2rem;
  padding-left: 1.7rem;
  text-align: left;
}
ul li, .card ul li {
  margin-bottom: 1.2rem;
  font-size: 1.12em;
  line-height: 1.85;
  text-align: left;
}
.cta-card {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  margin: 4rem 0 0 0;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(59,130,246,0.13);
}
.cta-card h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  color: #fff;
}
.cta-card p {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn-primary {
  background: #3b82f6;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 0.8rem;
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 1.5rem;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
}
.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px) scale(1.04);
}

body, .article-content, .card, .cta-card {
  font-family: 'Poppins', 'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

@media (max-width: 600px) {
  .card, .cta-card {
    padding: 1.2rem 0.7rem;
  }
  h2, .section-title {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
}