/* ConvertersOnline - Custom Mobile Responsive Light Theme Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --brand-blue: #1a73e8;
  --brand-blue-hover: #1557b0;
  --brand-blue-light: #e8f0fe;
  
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  --card-shadow-hover: 0 20px 30px -10px rgba(26, 115, 232, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

/* Navbar */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-custom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue) !important;
  background-color: var(--brand-blue-light);
}

.navbar-toggler {
  padding: 6px 10px;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  background-color: #ffffff;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.dropdown-menu {
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.dropdown-item {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.dropdown-item:hover, .dropdown-item.active {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2rem;
  background: radial-gradient(100% 100% at 50% 0%, rgba(26, 115, 232, 0.05) 0%, rgba(248, 250, 252, 0) 100%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #1a73e8 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
}

/* Cards & Components */
.custom-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.custom-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.tool-card {
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.tool-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.icon-blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.icon-green { background: #e6f4ea; color: #34a853; }
.icon-yellow { background: #fef7e0; color: #d97706; }
.icon-purple { background: #f3e8ff; color: #7c3aed; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-red { background: #fce8e6; color: #ea4335; }

.tool-title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.tool-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; flex-grow: 1; }

.btn-custom-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-custom-primary:hover {
  background-color: var(--brand-blue-hover);
  color: #ffffff;
}

.btn-custom-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-custom-secondary:hover {
  background-color: #e2e8f0;
}

.code-output-box {
  background-color: #0f172a;
  color: #f8fafc;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  padding: 1rem;
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Footer */
footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 3.5rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand-blue);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }
  
  .nav-link {
    padding: 0.65rem 1rem !important;
    margin-bottom: 4px;
  }
  
  .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: none;
    margin-top: 0;
    background-color: var(--bg-primary);
  }
}
