/*
 * Zeta Calculator - Pages CSS
 * Provides styles for individual tool pages with clean, minimalist design
 * Created: June 2023
 * Updated: June 2025
 */

:root {
  /* Main color palette */
  --primary-color: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --primary-rgb: 37, 99, 235;
  --accent-color: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  --accent-rgb: 14, 165, 233;
  
  /* Background colors */
  --background-color: #f8fafc;
  --card-color: #ffffff;
  --card-hover: #f1f5f9;
  --hover-color: rgba(37, 99, 235, 0.08);
  --section-alt-bg: #f1f5f9;
  
  /* Text colors */
  --text-color: #334155;
  --text-light: #64748b;
  --text-extra-light: #94a3b8;
  
  /* Border and shadows */
  --border-color: #e2e8f0;
  --input-border: #cbd5e1;
  --shadow-color: rgba(37, 99, 235, 0.1);
  --shadow-accent: rgba(14, 165, 233, 0.1);
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --box-shadow: 0 8px 20px var(--shadow-color);
  --box-shadow-hover: 0 12px 28px var(--shadow-color);
  
  /* Utility */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Status colors */
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
}

/* Dark mode colors */
.dark-mode {
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --accent-color: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  
  --background-color: #0f172a;
  --card-color: #1e293b;
  --card-hover: #334155;
  --hover-color: rgba(59, 130, 246, 0.15);
  --section-alt-bg: #1e293b;
  
  --text-color: #f1f5f9;
  --text-light: #cbd5e1;
  --text-extra-light: #94a3b8;
  
  --border-color: #334155;
  --input-border: #475569;
  --shadow-color: rgba(37, 99, 235, 0.25);
  --shadow-accent: rgba(14, 165, 233, 0.25);
}

/* Base styles & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.page-header {
  background-color: var(--card-color);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-color);
}

.logo-link:hover {
  color: var(--primary-color);
}

.logo-img {
  height: 40px;
  margin-right: 8px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Page content */
.page-content {
  flex: 1;
  padding: 2rem 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Page header section */
.page-header-section {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.page-header-section::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* Cards */
.card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--box-shadow-hover);
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: var(--card-color);
  color: var(--text-color);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: var(--card-color);
  color: var(--text-color);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Specific converter styling */
.converter-container {
  max-width: 800px;
  margin: 0 auto;
}

.converter-card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.converter-card:hover {
  box-shadow: var(--box-shadow-hover);
}

.converter-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.converter-icon {
  width: 42px;
  height: 42px;
  background-color: var(--primary-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.converter-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-color);
}

.converter-form {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  min-width: 120px;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--card-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.button-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

.conversion-result {
  background-color: var(--section-alt-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
}

.conversion-result.hidden {
  display: none;
}

.result-header {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.result-content {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.result-unit {
  font-size: 1.2rem;
  margin-left: 0.5rem;
  color: var(--text-light);
}

.result-formula {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.common-conversions h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.conversion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.conversion-pill {
  background-color: var(--section-alt-bg);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.conversion-pill:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
}

/* Converter Info Styles */
.converter-info {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.converter-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.converter-info p, .converter-info li {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.converter-info ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

/* Temperature Converter Specific Styles */
.formula-list {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formula-item {
  background-color: var(--section-alt-bg);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
}

.formula-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.formula-expression {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.temperature-points {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.point-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: var(--section-alt-bg);
  border-radius: var(--border-radius-sm);
}

.point-label {
  font-weight: 500;
  color: var(--text-color);
}

.point-values {
  color: var(--primary-color);
  font-family: monospace;
}

/* Related tools styles - improved */
.related-tools {
  margin-top: 3rem;
}

.related-tools h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-color);
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.related-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--box-shadow);
  text-align: center;
  text-decoration: none;
}

.related-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.related-tool-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.related-tool-card h4 {
  font-size: 1.125rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 600;
}

/* Footer Styling */
.page-footer {
  background-color: var(--section-alt-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.brand-column {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-color);
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--primary-color);
}

.footer-logo-img {
  height: 45px; /* Increased from 30px */
  width: auto;
}

.footer-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-links-group h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-light);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

.app-links {
  display: flex;
  gap: 1rem;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.app-link:hover {
  color: var(--primary-color);
}

/* Responsive footer styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .app-links {
    justify-content: center;
  }
}

/* Define accent-text class for logo */
.accent-text {
  color: var(--primary-color);
}

/* Responsive styles for converters */
@media (max-width: 768px) {
  .converter-card {
    padding: 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group {
    width: 100%;
  }
  
  .button-row {
    justify-content: space-between;
  }
  
  .conversion-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Responsive styles for converter info */
@media (max-width: 768px) {
  .converter-info {
    padding: 1.5rem;
  }
  
  .point-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .formula-expression {
    font-size: 0.85rem;
  }
  
  .related-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Tools Page Styles */
.tool-categories {
  margin: 2rem 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-tab {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  background-color: var(--hover-color);
}

.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-color);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tool-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.tool-description {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s ease;
}

.tool-link:hover {
  color: var(--primary-dark);
}

.tool-link i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.coming-soon .tool-link {
  color: var(--text-extra-light);
  pointer-events: none;
}

.features-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.features-list li {
  margin-bottom: 0.75rem;
}

/* Calculator-specific elements */
/* Calculator form styles are defined in specific calculator sections */

/* Toggle buttons for units and options */
.unit-toggle, .macros-toggle {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  max-width: 400px;
}

.unit-btn, .macro-btn {
  flex: 1;
  background-color: var(--card-color);
  color: var(--text-color);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.unit-btn:hover, .macro-btn:hover {
  background-color: var(--hover-color);
}

.unit-btn.active, .macro-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.unit-btn:first-child, .macro-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.unit-btn:last-child, .macro-btn:last-child {
  border-radius: 0 8px 8px 0;
}

/* For macros with three buttons */
.macros-toggle .macro-btn {
  font-size: 0.85rem;
  padding: 8px 12px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .unit-toggle, .macros-toggle {
    width: 100%;
    max-width: none;
  }
  
  .unit-btn, .macro-btn {
    padding: 8px;
    font-size: 0.85rem;
  }
  
  .macros-toggle .macro-btn {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
}

/* Calculator results styles are defined in specific calculator sections */

@media (max-width: 992px) {
  .page-title {
    font-size: 2.25rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .converter-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .category-tabs {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  
  .category-tab {
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .converter-actions {
    flex-direction: column;
  }
}

/* Navigation Pills */
.pills-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  background-color: var(--section-alt-bg);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  justify-content: center;
}

.pill-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
}

.pill-link:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
}

.pill-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Dark Mode for Pills Nav */
.dark-mode .pills-nav {
  background-color: rgba(30, 41, 59, 0.5);
}

.dark-mode .pill-link {
  background-color: var(--card-color);
  color: var(--text-light);
  border-color: var(--border-color);
}

.dark-mode .pill-link:hover {
  background-color: rgba(37, 99, 246, 0.15);
  color: var(--primary-light);
}

.dark-mode .pill-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* Social sharing buttons for converter pages */
.social-share {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid var(--border-color);
}

.social-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.social-btn.facebook:hover {
  background-color: #1877f2;
}

.social-btn.twitter:hover {
  background-color: #1da1f2;
}

.social-btn.whatsapp:hover {
  background-color: #25d366;
}

.social-btn.linkedin:hover {
  background-color: #0a66c2;
}

.social-btn.copy:hover {
  background-color: var(--accent-color);
}

/* Modern Site Footer Styles */
.site-footer {
  background-color: var(--card-color);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-color);
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-logo-img {
  height: 40px; /* Increased from 30px */
  width: auto;
}

.footer-tagline {
  color: var(--text-light);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-links-group h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-light);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

.app-links {
  display: flex;
  gap: 1rem;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.app-link:hover {
  color: var(--primary-color);
}

/* Theme toggle button styling */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: 0.5rem;
  background-color: transparent;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle i {
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animation for theme icon */
.theme-toggle i.rotate-effect {
  animation: rotate-theme-icon 0.6s;
}

@keyframes rotate-theme-icon {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Dark mode specific styles */
.dark-mode .theme-toggle {
  border-color: var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .theme-toggle:hover {
  border-color: var(--primary-light);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.3);
}

.dark-mode .theme-toggle i {
  color: #FFD700; /* Golden color for sun icon */
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Responsive styles for theme toggle */
@media screen and (max-width: 768px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  
  .theme-toggle i {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .theme-toggle {
    width: 32px;
    height: 32px;
    margin-left: 0.35rem;
  }
  
  .theme-toggle i {
    font-size: 0.9rem;
  }
}
