/* MyCashTrack.com - Premium Financial Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #f8fafc;
    --primary: #10b981; /* Emerald Green */
    --primary-hover: #059669;
    --accent: #3b82f6; /* Blue */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --border: #334155;
    --radius: 12px;
    --font: 'Inter', sans-serif;
    --container: 1200px;
    --transition: all 0.3s ease;
}

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

body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text-main); }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

/* Header */
header { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 1.2rem 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; padding: 0.8rem 1.8rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: var(--transition); }
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(16, 185, 129, 0.1); }

/* Hero */
.hero { padding: 8rem 0; position: relative; border-bottom: 1px solid var(--border); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; }

/* Calculator Widget */
.calc-widget { background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.calc-header { margin-bottom: 2rem; text-align: center; }
.calc-header h3 { font-size: 1.5rem; color: var(--text-main); }
.calc-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; background: var(--bg-dark); padding: 0.5rem; border-radius: 8px; }
.calc-tab { flex: 1; padding: 0.8rem; text-align: center; font-weight: 600; cursor: pointer; border-radius: 6px; transition: var(--transition); color: var(--text-muted); }
.calc-tab.active { background: var(--primary); color: #fff; }
.input-group { margin-bottom: 1.5rem; position: relative; }
.input-group label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 500; }
.input-wrapper { display: flex; align-items: center; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.input-wrapper input { flex: 1; background: transparent; border: none; color: var(--text-main); padding: 1rem; font-size: 1.2rem; font-weight: 600; outline: none; width: 100%; }
.currency-label { padding: 1rem; background: var(--border); font-weight: 700; color: var(--text-main); }
.calc-rate { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Features Grid */
.features { background: var(--bg-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--bg-card); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.feature-icon { width: 50px; height: 50px; background: rgba(16, 185, 129, 0.1); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* Section Title */
.section-title { font-size: 2.5rem; margin-bottom: 3rem; text-align: center; }

/* Blog Cards */
.blog-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; transition: var(--transition); }
.blog-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.blog-img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; border-bottom: 1px solid var(--border); }
.blog-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-tag { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.5rem; }
.blog-title { font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.4; }
.blog-excerpt { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; flex-grow: 1; }

/* Article Post */
.post-header { padding: 4rem 0 2rem; text-align: center; max-width: 800px; margin: 0 auto; }
.post-title { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
.post-meta { color: var(--text-muted); font-size: 1rem; }
.post-hero { width: 100%; max-height: 500px; object-fit: cover; margin-bottom: 3rem; }
.post-body { max-width: 800px; margin: 0 auto 5rem; font-size: 1.15rem; line-height: 1.8; color: #cbd5e1; }
.post-body h2 { font-size: 2rem; margin: 3rem 0 1.5rem; color: var(--text-main); }
.post-body h3 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.post-body p { margin-bottom: 1.5rem; }
.post-body ul { margin: 0 0 1.5rem 2rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote { border-left: 4px solid var(--primary); padding: 1.5rem; margin: 2rem 0; background: var(--bg-card); font-style: italic; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-main); }

/* FAQ */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.faq-btn { width: 100%; text-align: left; padding: 1.5rem; background: transparent; border: none; color: var(--text-main); font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font); }
.faq-content { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-content { padding-bottom: 1.5rem; max-height: 500px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* Footer */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; color: var(--text-muted); padding-top: 2rem; border-top: 1px solid var(--border); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero { padding: 4rem 0; }
    .post-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-text h1 { font-size: 2rem; }
    .calc-widget { padding: 1.5rem; }
}
