/*
Theme Name: Money Green
Theme URI: https://example.com/money-green
Author: Antigravity
Author URI: https://example.com
Description: A fresh, money-green themed blog designed for modern reading experiences. Features glassmorphism, smooth animations, and a clean layout.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: money-green
Tags: blog, greenish, modern, responsive
*/

:root {
    --bg-color: #f0fdf4;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(34, 197, 94, 0.15);
    --text-primary: #14532d;
    --text-secondary: #4b5563;
    --accent-primary: #16a34a;
    --accent-secondary: #059669;
    --gradient-main: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Admin bar fix */
body.admin-bar .navbar {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        margin-top: 46px;
    }
}

/* Layout */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 30px;
    /* Moved down as requested, fits well with glassmorphism */
    left: 2%;
    /* Added some inset */
    right: 2%;
    /* Added some inset */
    border-radius: 100px;
    /* Rounded pill shape since it's floating now */
    background: rgba(240, 253, 244, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border: 1px solid var(--card-border);
    /* Changed to full border for floating look */
    transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    /* Added shadow for depth */
}

/* Reset to full width on scroll if desired, or keep floating. Let's keep floating, it's trendy. */

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links .current-menu-item>a {
    color: var(--text-primary);
}

/* Navbar Search Button */
.nav-actions .icon-btn {
    color: var(--accent-primary);
    background: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
}

.nav-actions .icon-btn:hover {
    background: var(--accent-primary);
    color: white;
}

/* Buttons */
.primary-btn {
    background: var(--gradient-main);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
    color: white;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(22, 163, 74, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    display: inline-block;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    padding: calc(var(--header-height) + 6rem) 5% 4rem;
    /* Increased padding top */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    background: url('assets/images/hero-text-bg.jpg');
    background-size: 200px;
    /* Pattern size */
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Subtle shadow to lift it */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle border */
    position: relative;
    /* For z-index if needed */
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

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

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #4ade80;
    top: 50px;
    right: 50px;
    animation: float 10s infinite alternate;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: #34d399;
    bottom: 50px;
    left: 50px;
    animation: float 8s infinite alternate-reverse;
}

.glass-card {
    position: relative;
    width: 300px;
    padding: 2rem;
    background: url('assets/images/card-bg.jpg') center/cover no-repeat;
    /* backdrop-filter: blur(20px); - Removed as we have a solid bg image now */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.08);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Post Grid */
.featured {
    padding: 4rem 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 163, 74, 0.3);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.1);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.card h3 a:hover {
    color: var(--accent-primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    margin-top: auto;
}

.read-more {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.card:hover .read-more::after {
    width: 100%;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 5%;
    margin-top: 4rem;
    background: linear-gradient(to bottom, transparent, rgba(22, 163, 74, 0.03));
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, -20px);
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        height: auto;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

/* Single Post Styles */
.single-post-container {
    animation: fadeIn 0.8s ease-out;
}

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

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
    background: rgba(22, 163, 74, 0.05);
    /* very light green bg */
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-meta a {
    color: var(--accent-primary);
    font-weight: 500;
}

.entry-meta a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comments Area */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

/* Search Overlay - Premium Design */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 78, 59, 0.96);
    /* Deep forest green */
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}


.search-form {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding: 0 5%;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-overlay.active .search-form {
    transform: translateY(0);
}

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    padding: 1rem 0;
    text-align: left;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.search-submit {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-submit:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.search-close {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .search-field {
        font-size: 1.8rem;
    }

    .search-submit,
    .search-close {
        width: 44px;
        height: 44px;
    }
}

.comment-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comment-author cite {
    font-weight: 700;
    font-style: normal;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.reply {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.comment-reply-link {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Hero Custom Image */
.hero-image-container {
    position: absolute;
    right: -40px;
    bottom: -30px;
    z-index: 2;
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: rotate(0) scale(1.05);
    z-index: 5;
}

.hero-custom-img {
    width: 200px;
    /* "Not too big" */
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.8);
    display: block;
}

@media (max-width: 900px) {
    .hero-image-container {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -30px;
        transform: rotate(2deg);
    }
}

/* Comment Form Styles */
.comment-respond {
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.comment-reply-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    display: block;
    color: var(--text-primary);
}

.comment-reply-title small a {
    font-size: 1rem;
    color: var(--accent-secondary);
    margin-left: 1rem;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(22, 163, 74, 0.15);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

.form-submit {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.submit {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.comment-notes,
.logged-in-as {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .comment-form {
        grid-template-columns: 1fr;
    }
}