/*
Theme Name: WealthPath
Theme URI: https://foenix.ai/?from=wpgen
Author: Foenix AI
Author URI: https://foenix.ai/?from=wpgen
Description: A clean, modern, dark classic theme for the WealthPath personal finance blog. Designed with Inter typography, #0A0A0A background, and #22C55E green accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wealthpath-theme
Tags: personal-finance, dark, clean, minimal, blog, responsive
*/

/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0A0A0A;
    color: #E5E5E5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: #CCCCCC;
}

a {
    color: #22C55E;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #4ADE80;
}

/* Lists */
ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #CCCCCC;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ==========================================================================
   2. LAYOUT STRUCTURE
   ========================================================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
    padding: 3rem 0;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid & Helpers */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: #121212;
    border-bottom: 1px solid #1F1F1F;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Wordmark Logo */
.logo-wordmark {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.1em;
}

.logo-wordmark span {
    color: #22C55E;
}

/* Navigation Menu */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #9CA3AF;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #22C55E;
}

/* ==========================================================================
   4. HOME & ARCHIVE PAGES (CARDS)
   ========================================================================== */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: radial-gradient(circle at center, #16241a 0%, #0A0A0A 100%);
    border-bottom: 1px solid #1F1F1F;
    margin-bottom: 3rem;
    margin-top: -3rem;
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: #9CA3AF;
}

/* Post and Tool Cards */
.card {
    background-color: #121212;
    border: 1px solid #1F1F1F;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #22C55E;
}

.card-tag {
    display: inline-block;
    background-color: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: #FFFFFF;
}

.card-title a:hover {
    color: #22C55E;
}

.card-meta {
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.card-excerpt {
    color: #9CA3AF;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
}

/* ==========================================================================
   5. FINANCE TOOLS CUSTOM CARD ARCHIVE
   ========================================================================== */
.tool-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #1F1F1F;
}

.tool-grid-score {
    background-color: #22C55E;
    color: #0A0A0A;
    font-weight: 800;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-grid-price {
    font-size: 0.85rem;
    color: #9CA3AF;
    font-weight: 500;
}

/* ==========================================================================
   6. SINGLE ARTICLE VIEW
   ========================================================================== */
.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.article-meta {
    color: #6B7280;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0F0F0F;
    border-top: 1px solid #1F1F1F;
    color: #6B7280;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 0.75rem;
}

.footer-copyright {
    margin-top: 0.5rem;
}

.footer-nav {
    display: flex;
    gap: 3rem;
}

.footer-menu-column h4 {
    color: #FFFFFF;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-column li {
    margin-bottom: 0.5rem;
}

.footer-menu-column a {
    color: #9CA3AF;
}

.footer-menu-column a:hover {
    color: #22C55E;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
}

/* ==========================================================================
   8. FORMS & INPUTS (CONTACT PAGE)
   ========================================================================== */
.contact-form {
    background-color: #121212;
    border: 1px solid #1F1F1F;
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background-color: #1A1A1A;
    border: 1px solid #2B2B2B;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, outline 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #22C55E;
}

.btn {
    display: inline-block;
    background-color: #22C55E;
    color: #0A0A0A;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #4ADE80;
}

/* ==========================================================================
   9. CUSTOM FINANCE TOOL REVIEW CARD (FRONTEND PLUGIN OVERRIDES STYLE)
   ========================================================================== */
.wealthpath-review-card {
    background-color: #121212;
    border: 1px solid #1F1F1F;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.wealthpath-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1F1F1F;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.wealthpath-score-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wealthpath-score-badge {
    background-color: #22C55E;
    color: #0A0A0A;
    font-size: 1.8rem;
    font-weight: 800;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wealthpath-score-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
}

.wealthpath-pricing-info {
    text-align: right;
}

.wealthpath-pricing-label {
    display: block;
    font-size: 0.8rem;
    color: #6B7280;
    text-transform: uppercase;
    font-weight: 600;
}

.wealthpath-pricing-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.wealthpath-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .wealthpath-pros-cons {
        grid-template-columns: 1fr;
    }
    .wealthpath-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .wealthpath-pricing-info {
        text-align: left;
    }
}

.wealthpath-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.wealthpath-pros-column .wealthpath-column-title {
    color: #22C55E;
}

.wealthpath-cons-column .wealthpath-column-title {
    color: #EF4444;
}

.wealthpath-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.wealthpath-list-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #CCCCCC;
}

.wealthpath-pros-column .wealthpath-list-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22C55E;
    font-weight: bold;
}

.wealthpath-cons-column .wealthpath-list-item::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #EF4444;
    font-weight: bold;
}

/* New styles for images */
.hero {
    position: relative;
    overflow: hidden;
}

.card {
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.card-body {
    padding: 1.75rem;
}

.featured-image-single img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- UI Fixes (v2) --- */

/* 1. Make entire card clickable */
.card {
    position: relative !important;
    cursor: pointer;
    overflow: hidden; /* Ensure stretched link doesn't overflow */
}

/* Clear existing link styles if they conflict */
.card-title a {
    color: #FFFFFF;
}

/* Stretched link pattern */
.card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5; /* Sit above other card content */
}

/* Ensure hover state applies to card */
.card:hover {
    border-color: #22C55E;
    transform: translateY(-4px);
}

/* 2. Fix rating alignment and circle shape */
.tool-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #1F1F1F;
    position: relative; /* Keep it below the link if needed, but flex items should be fine */
}

.tool-grid-score {
    background-color: #22C55E;
    color: #0A0A0A;
    font-weight: 800;
    font-size: 0.9rem;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important; /* Force circle shape */
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0;
}