/*
Theme Name: moneysimple
Theme URI: https://moneycard360.com
Author: moneysimple
Author URI: https://moneycard360.com
Description: A modern, elegant theme for digital banking and virtual card reviews
Version: 2.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moneycard360
Tags: blog, finance, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --primary-blue: #0066ff;
    --primary-purple: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --bg-dark: #0f172a;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Smooth scroll for in-page anchors (hero buttons) */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    background-attachment: fixed;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-header.scroll-up::before {
    opacity: 1;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    position: relative;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: var(--primary-blue);
    background: rgba(99, 102, 241, 0.05);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 60%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.375rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4), var(--shadow-glow);
    color: white;
}

.hero-cta:hover::before {
    left: 0;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary-blue);
}

.card-excerpt {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 1.5rem auto 0;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-thumbnail {
    width: 240px;
    height: 180px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.article-item:hover .article-thumbnail {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
}

.article-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.article-item:hover .article-title a {
    color: var(--primary-blue);
}

.article-excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Footer */
.simple-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.simple-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.simple-footer .container {
    position: relative;
    z-index: 1;
}

.copyright-text {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.8;
}

.simple-footer .copyright-text a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.simple-footer .copyright-text a:hover {
    color: #60a5fa;
}

/* Hot Picks Grid */
.hot-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .hot-picks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hot-picks-grid {
        grid-template-columns: 1fr;
    }
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-widget h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* Single Post & Page Styles */
.article-single,
.page-single {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 2rem;
}

.article-single .article-title,
.page-single .page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-featured-image,
.page-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.article-main-content {
    min-width: 0;
}

.article-content,
.page-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2,
.page-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-content h3,
.page-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-content p,
.page-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li,
.page-content li {
    margin-bottom: 0.5rem;
}

.article-content img,
.page-content img {
    border-radius: var(--radius);
    margin: 1rem 0;
}

.article-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-navigation a {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.article-navigation a:hover {
    background: var(--primary-blue);
    color: white;
}

.nav-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget .post-views {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: var(--radius);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.rating-stars .star {
    color: #fbbf24;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
    transition: transform 0.2s ease;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

.rating-stars .star.empty {
    color: #d1d5db;
    filter: none;
}

.rating-stars .rating-value {
    margin-left: 0.75rem;
    font-weight: 700;
    color: #f59e0b;
    font-size: 1.125rem;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--text-gray);
}

.breadcrumbs a:hover {
    color: var(--primary-blue);
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.pagination a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: transparent;
}

.pagination .current {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

/* Scroll Effects */
.site-header.scroll-down {
    transform: translateY(-100%);
}

.site-header.scroll-up {
    box-shadow: var(--shadow-md);
}

/* No Posts Message */
.no-posts,
.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: var(--radius);
}

.no-results h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.search-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
}

.search-suggestions {
    margin-top: 3rem;
}

.search-suggestions h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Error 404 Styles */
.error-404 {
    padding: 4rem 0;
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-title {
    font-size: 8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.error-search {
    max-width: 500px;
    margin: 2rem auto;
}

.error-links {
    margin: 2rem 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.0625rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4), var(--shadow-glow);
    color: white;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.popular-posts-404 {
    margin-top: 4rem;
}

.popular-posts-404 h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Search Header */
.search-header,
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
}

.search-title,
.archive-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-title span {
    color: var(--primary-blue);
}

.search-count,
.archive-description {
    color: var(--text-gray);
    margin-top: 1rem;
}

.archive-description p {
    margin: 0;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-form button,
.search-form input[type="submit"] {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-form button:hover,
.search-form input[type="submit"]:hover {
    transform: translateY(-2px);
}

/* Comments Styles */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.comment-list .children {
    list-style: none;
    margin-left: 2rem;
    margin-top: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.comment-metadata a {
    color: var(--text-gray);
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    font-size: 0.875rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

/* Comment Form */
.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.active {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation a {
        display: block;
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .article-item {
        flex-direction: column;
    }

    .article-thumbnail {
        width: 100%;
        height: 200px;
    }

    .article-single .article-title,
    .page-single .page-title {
        font-size: 1.75rem;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Category Posts Grid */
.category-posts-section {
    padding: 60px 0;
}

.category-posts-section .section-header {
    margin-bottom: 40px;
}

.category-posts-section .section-title-v2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-posts-section .section-title-v2 a:hover {
    color: var(--primary-blue);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--bg-light);
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.post-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-placeholder {
    color: var(--text-light);
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.post-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-view-more svg {
    transition: transform 0.3s ease;
}

.btn-view-more:hover svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-posts-section {
        padding: 40px 0;
    }
}
