/*
Theme Name: Indoor Plant Nook
Theme URI: https://indoorplantnook.com/
Author: Antigravity AI
Author URI: https://indoorplantnook.com/
Description: A professional, simple, modern, and flat WordPress theme for indoor plant enthusiasts.
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: indoor-plant-nook
*/

/* --- Design System --- */
:root {
    /* Colors */
    --primary: #4A7C59;
    --primary-light: #6B9A7A;
    --primary-dark: #355E43;
    --secondary: #E69138;
    --secondary-light: #F0A356;
    --accent: #D4E2D4;
    --background: #F9FBF9;
    --surface: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border: #E0E0E0;
    --glass: rgba(255, 255, 255, 0.8);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-md) 0;
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Header & Nav --- */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

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

.logo img {
    height: 50px;
    width: auto;
    border-radius: 0;
}

.main-nav ul,
.main-nav .menu ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.main-nav a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    padding: var(--space-lg) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: var(--space-sm);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
}

.post-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.post-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0;
}

.post-content {
    padding: var(--space-md);
}

.post-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.post-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* --- Single Post --- */
.single-post-header {
    max-width: 800px;
    margin: var(--space-md) auto var(--space-md);
    text-align: center;
    padding: 0 var(--space-md);
}

.post-meta {
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-muted);
}

.post-featured-image {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    padding: 0 var(--space-md) var(--space-xl);
    line-height: 1.8;
}

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

.entry-content h2,
.entry-content h3 {
    margin: 3.5rem 0 1.5rem;
}

.entry-content blockquote {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--accent);
    border-radius: var(--radius-md);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    position: relative;
    border-left: 6px solid var(--primary);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

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

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

.entry-content a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}

.entry-content a:hover {
    text-decoration-color: var(--primary);
}

.entry-content figure {
    margin: 3rem 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* --- Tables --- */
.entry-content table {
    width: 100%;
    margin: 3rem 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.entry-content th,
.entry-content td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border: none;
}

.entry-content th {
    background-color: var(--primary);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.entry-content td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content tr:nth-child(even) {
    background-color: rgba(74, 124, 89, 0.02);
}

.entry-content tr:hover td {
    color: var(--text-main);
    background-color: rgba(74, 124, 89, 0.05);
}

.entry-content td:first-child {
    font-weight: 600;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
}

/* --- Footer --- */
.site-footer {
    background-color: #2D3E33;
    color: #E0E7E0;
    padding: var(--space-md) 0 var(--space-md);
    border-top: 4px solid var(--secondary);
    margin-top: var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-title {
    font-family: 'Playfair Display', serif;
    color: var(--surface);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link:hover {
    color: var(--secondary);
}

/* Footer Links */
.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #B0C4B0;
    font-weight: 500;
}

.footer-widget a:hover {
    color: var(--surface);
    padding-left: 5px;
}

/* Newsletter Section */
.footer-subscribe {
    display: flex;
    margin-top: 1.5rem;
}

.subscribe-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    color: white;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    flex-grow: 1;
    font-family: inherit;
}

.subscribe-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background: var(--secondary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #889688;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-meta {
    font-style: italic;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* --- Utility --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* --- Comments --- */
.comment-list .comment {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.comment-list .vcard img {
    border-radius: var(--radius-full);
    float: left;
    margin-right: var(--space-sm);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.comment-content {
    clear: both;
    margin-top: var(--space-sm);
}

.reply {
    margin-top: var(--space-sm);
    font-weight: 700;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-lg);
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 600;
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

.entry-content .bsf-rt-reading-time,
.post-content .bsf-rt-reading-time {
    margin-bottom: 30px !important;
    border-radius: 30px;
    padding: 0.5rem 1.5rem !important;
}