/* Main Styles for PPC Mastery Tools */

:root {
  --primary-color: #576AAB;
  --primary-dark: #455389;
  --primary-light: #7889C3;
  --primary-very-light: #EEF1FA;
  --secondary-color: #5A6268;
  --accent-color: #576AAB;
  --light-bg: #f8fafc;
  --dark-bg: #1e293b;
  --dark-blue: #1e293b;
  --border-color: #e2e8f0;
  --success-color: #28A745;
  --warning-color: #FFC107;
  --danger-color: #DC3545;
  --text-color: #334155;
  --text-light: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 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);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --body-bg: #FFFFFF;
  --body-color: #212529;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-headings: 'Outfit', var(--font-family-sans-serif);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-sans-serif);
  line-height: 1.6;
  color: var(--body-color);
  background-color: var(--body-bg);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family-headings);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.page-heading {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title {
  position: relative;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: white;
}

.navbar-brand {
  font-family: var(--font-family-headings);
  font-weight: 600;
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

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

/* Footer */
footer {
  background-color: var(--light-color);
  padding: 3rem 0;
  margin-top: 2rem;
}

footer .nav-link {
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

footer .nav-link:hover {
  color: var(--primary-color);
}

footer .copyright {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius);
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Card styling */
.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.card-header {
  background-color: var(--primary-very-light);
  border-bottom: none;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

/* Form styling */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-control {
  padding: 0.6rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(87, 106, 171, 0.15);
}

.form-text {
  color: var(--secondary-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.input-group-text {
  background-color: var(--light-color);
  border: 1px solid #dee2e6;
  color: var(--secondary-color);
}

/* Calculator specific styles */
.calculator-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.calculator-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-very-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.calculator-results {
  animation: fadeIn 0.5s ease-in-out;
}

.result-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.result-card h3 {
  color: var(--dark-color);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.result-value {
  color: var(--primary-color);
  font-weight: 600;
}

.result-description {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.coming-soon {
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .calculator-icon {
    width: 60px;
    height: 60px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header Styles */
.navbar-brand img {
  filter: brightness(1);
}

.navbar-brand span {
  color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(87, 106, 171, 0.08);
}

/* Enhanced Field Styles */
.form-label .fas {
  cursor: help;
  color: var(--primary-color);
}

/* Result Styling */
.calculator-results .card {
  margin-bottom: 1.5rem;
  background-color: white;
}

.calculator-results .fs-4,
.calculator-results .fs-5 {
  color: var(--primary-color);
  font-weight: bold;
}

/* Tooltip Customization */
.tooltip {
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
}

.tooltip .tooltip-inner {
  max-width: 300px;
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
}

/* Toggle Switch Styling */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-switch .form-check-input:focus {
  border-color: rgba(87, 106, 171, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(87, 106, 171, 0.15);
}

/* Hero Section */
.jumbotron {
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  border-radius: 0;
  margin-bottom: 3rem;
  padding: 3rem 0;
}

/* Modern Result Card - Similar to the example */
.result-card {
  background-color: var(--dark-blue);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.result-card h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.result-card .result-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.result-card .result-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.boost-section {
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.boost-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.learn-more-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  width: 100%;
  font-weight: 500;
  transition: all 0.2s ease;
}

.learn-more-btn:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

/* Conversion Rate Calculator Styling */
.conversion-calculator .input-container {
  margin-bottom: 1.5rem;
}

.conversion-calculator .form-control {
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
}

.conversion-calculator label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.conversion-calculator .helper-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Page Headings */
.page-heading {
  color: var(--secondary-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.lead {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calculator-form {
    padding: 1.5rem;
  }
  
  .page-heading {
    font-size: 2rem;
  }
} 