/* ========================================
   🎨 QUICK TOOL - MODERN CSS DESIGN
   Mobile First + PC Friendly
======================================== */

/* ✅ Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Theme */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: hsl(258, 90%, 66%);
  --accent-color: #ec4899;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   📱 HEADER STYLES
======================================== */
header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-section img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: black;
  white-space: nowrap;
}

/* Navigation */
nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

nav a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ========================================
   🎯 MAIN CONTENT
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
}

main.container {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

main h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

main p {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ========================================
   🔧 TOOL GRID
======================================== */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.tool-btn {
  display: block;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.tool-btn:hover::before {
  left: 100%;
}

.tool-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-btn:active {
  transform: translateY(-2px);
}

/* ========================================
   👣 FOOTER STYLES
======================================== */
.pro-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
  padding: 3rem 1rem 1rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 0rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.contact p {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.contact small {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.copyright-warning {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* ========================================
   📱 RESPONSIVE DESIGN - TABLETS
======================================== */
@media (min-width: 640px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  main h1 {
    font-size: 2.25rem;
  }
}

/* ========================================
   💻 RESPONSIVE DESIGN - DESKTOP
======================================== */
@media (min-width: 768px) {
  .logo-name {
    font-size: 1.5rem;
  }
  
  nav a {
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
  }
  
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .tool-btn {
    padding: 1.5rem;
    font-size: 1.05rem;
  }
  
  main h1 {
    font-size: 2.5rem;
  }
  
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
  
  .footer-brand {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 2.5rem 2rem;
  }
  
  main.container {
    padding: 3rem 2.5rem;
  }
  
  .tool-grid {
    gap: 2rem;
  }
  
  main h1 {
    font-size: 3rem;
  }
  
  main p {
    font-size: 1.2rem;
  }
}

/* ========================================
   ✨ ANIMATIONS & EFFECTS
======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 0.6s ease;
}

.tool-btn {
  animation: fadeIn 0.6s ease backwards;
}

.tool-btn:nth-child(1) { animation-delay: 0.1s; }
.tool-btn:nth-child(2) { animation-delay: 0.2s; }
.tool-btn:nth-child(3) { animation-delay: 0.3s; }
.tool-btn:nth-child(4) { animation-delay: 0.4s; }
.tool-btn:nth-child(5) { animation-delay: 0.5s; }
.tool-btn:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   🎯 ACCESSIBILITY
======================================== */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Search Bar Styles (New – Matches Theme) */
.search-container {
  display: flex;
  max-width: 600px;
  margin: 1rem auto; /* Centered, space from p tag */
  gap: 10px; /* Button-input space */
  background: var(--card-bg); /* White background like tools */
  border-radius: 12px;
  padding: 0.5rem; /* Inner padding */
  box-shadow: var(--shadow); /* Matches tool cards */
  transition: box-shadow 0.3s ease; /* Hover effect */
}

.search-container:hover {
  box-shadow: var(--shadow-lg); /* Hover lift */
}

#searchInput {
  flex: 1; /* Takes full space */
  padding: 0.75rem 1rem; /* Comfortable input */
  border: 2px solid var(--border-color); /* Light border */
  border-radius: 8px;
  font-size: 1rem; /* Readable */
  background: var(--bg-color); /* Light bg */
  color: var(--text-color);
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary-color); /* Purple focus */
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); /* Glow effect */
}

.search-container button {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Matches tool btn gradient */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth hover */
  font-weight: 600;
}

.search-container button:hover {
  transform: translateY(-2px); /* Lift effect like tools */
  box-shadow: var(--shadow-lg);
}

/* Search Results Styles (New – Matches Card Design) */
.search-results {
  max-width: 800px;
  margin: 1rem auto; /* Centered below search */
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
}

.search-results h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

#resultsList {
  list-style: none;
  padding: 0;
}

#resultsList li {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

#resultsList li:hover {
  background: var(--bg-color); /* Light hover like tools */
}

#resultsList li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: block;
}

#resultsList li a:hover {
  text-decoration: underline;
}

/* Responsive (Matches Existing Media Queries) */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column; /* Stack on mobile */
    gap: 0.5rem;
    padding: 1rem;
  }
}

/*Google Ads */
.ad-sidebar {
  width: 100%; /* Mobile pe full */
  max-width: 300px; /* Desktop pe sidebar size */
  margin: 20px auto; /* Center kar */
  text-align: center;
}