/* Mobile Plan Savings Calculator Website Styles */

:root {
  /* Color Scheme */
  --primary: #2563eb;      /* Bright blue - main brand color */
  --secondary: #475569;    /* Slate gray - secondary elements */
  --accent: #f59e0b;      /* Amber - call to action elements */
  --success: #10b981;     /* Emerald - success states */
  --danger: #ef4444;      /* Red - error states */
  --warning: #f59e0b;     /* Amber - warning states */
  --info: #3b82f6;        /* Blue - info states */
  
  /* Text Colors */
  --text-dark: #1e293b;   /* Slate 800 - primary text */
  --text-light: #94a3b8;  /* Slate 400 - secondary text */
  --text-white: #ffffff;  /* White - light text */
  
  /* Background Colors */
  --bg-primary: #ffffff;  /* White - main background */
  --bg-secondary: #f8fafc; /* Slate 50 - alternate background */
  --bg-dark: #0f172a;     /* Slate 900 - dark sections */
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Common Components */

/* Navigation */
.navbar {
  background-color: var(--bg-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

/* Forms */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(37,99,235,0.25);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 0;
}

.footer-heading {
  color: var(--text-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-white);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  padding: 8rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

/* Calculator Styles */
.calculator-form {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 0.5rem;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 0.5rem;
}

/* Blog Posts */
.blog-post {
  margin-bottom: 2rem;
}

.blog-post img {
  border-radius: 0.5rem;
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Loading Spinner */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 0.25rem solid var(--bg-secondary);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utilities */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }
