/*
Theme Name: FundaPrep
Theme URI: https://fundaprep.com
Author: FundaPrep Engineering
Author URI: https://fundaprep.com
Description: Official FundaPrep theme matching the look and feel of fundaprep.com
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fundaprep
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --fp-primary: #2563eb;
  --fp-primary-dark: #1d4ed8;
  --fp-slate-900: #0f172a;
  --fp-slate-800: #1e293b;
  --fp-slate-700: #334155;
  --fp-slate-600: #475569;
  --fp-slate-500: #64748b;
  --fp-slate-400: #94a3b8;
  --fp-slate-200: #e2e8f0;
  --fp-slate-100: #f1f5f9;
  --fp-slate-50: #f8fafc;
}

*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--fp-slate-50);
  color: var(--fp-slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.fp-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .fp-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Header */
.fp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to right, #0f172a, #172554, #312e81);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
}

.fp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  gap: 1rem;
}

.fp-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fp-logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 640px) {
  .fp-logo img {
    height: 48px;
  }
}

.fp-nav {
  display: none;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 768px) {
  .fp-nav {
    display: flex;
  }
}

.fp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(219, 234, 254, 0.9);
  transition: all 0.15s ease;
}

.fp-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fp-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  outline: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.fp-get-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, #10b981, #0d9488);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
  transition: all 0.15s ease;
}

.fp-get-app-btn:hover {
  background: linear-gradient(to right, #059669, #0f766e);
  transform: scale(0.98);
}

.fp-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fp-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.15s ease;
}

.fp-login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.fp-signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e3a8a;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.fp-signup-btn:hover {
  background: #eff6ff;
}

.fp-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

@media (min-width: 768px) {
  .fp-mobile-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.fp-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
}

.fp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 51;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-drawer.open {
  transform: translateX(0);
}

.fp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(to right, #0f172a, #172554, #312e81);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fp-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.fp-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #f8fafc;
  color: #334155;
  margin-bottom: 0.5rem;
}

.fp-drawer-link.active {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: #ffffff;
}

/* Card Style */
.fp-card {
  background: #ffffff;
  border: 1px solid var(--fp-slate-200);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Article Hero & Typography */
.fp-article-header {
  background: #ffffff;
  border: 1px solid var(--fp-slate-200);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .fp-article-header {
    padding: 2rem;
  }
}

.fp-article-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--fp-slate-900);
  line-height: 1.25;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .fp-article-title {
    font-size: 2.25rem;
  }
}

.fp-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
}

.fp-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fp-slate-900);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.fp-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fp-slate-900);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.fp-prose p {
  margin-bottom: 1.25rem;
}

.fp-prose ul, .fp-prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.fp-prose li {
  margin-bottom: 0.5rem;
}

.fp-prose img {
  border-radius: 1rem;
  margin: 1.5rem 0;
}

.fp-prose blockquote {
  border-left: 4px solid var(--fp-primary);
  background: #eff6ff;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-style: italic;
  margin: 1.5rem 0;
}

/* Interactive App CTA inside articles */
.fp-cta-box {
  background: linear-gradient(135deg, #1e1b4b, #1e3a8a);
  border-radius: 1.5rem;
  padding: 2rem;
  color: #ffffff;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
}

.fp-cta-box h3 {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.fp-cta-box p {
  color: #cbd5e1;
  font-size: 0.875rem;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
}

.fp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  transition: all 0.15s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fp-cta-btn:hover {
  background: #eff6ff;
  transform: scale(1.02);
}

/* Footer */
.fp-footer {
  margin-top: auto;
  background: linear-gradient(to bottom, #0f172a, #020617);
  border-top: 1px solid #1e293b;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem 0;
}

.fp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .fp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fp-footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fp-footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}

.fp-footer-links {
  list-style: none;
}

.fp-footer-links li {
  margin-bottom: 0.5rem;
}

.fp-footer-links a {
  font-size: 0.75rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.15s;
}

.fp-footer-links a:hover {
  color: #ffffff;
}

.fp-playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 0.625rem 1rem;
  color: #ffffff;
  transition: all 0.15s ease;
}

.fp-playstore-btn:hover {
  background: #171717;
  transform: scale(0.98);
}
