/* ============================================
   SQUIRROL25 - News Theme
   Pastel Blue x Chocolate Brown
   ============================================ */

:root {
    /* Pastel Blue palette */
    --blue-50: #f0f7ff;
    --blue-100: #e0effe;
    --blue-200: #b9dcfe;
    --blue-300: #7cc2fd;
    --blue-400: #5aadfa;
    --blue-500: #4a9de8;
    --blue-600: #3b7fc4;

    /* Chocolate Brown palette */
    --brown-50: #fdf8f4;
    --brown-100: #f5ebe0;
    --brown-200: #e8d5c0;
    --brown-300: #d4b896;
    --brown-400: #b8956a;
    --brown-500: #8B6F47;
    --brown-600: #6B5335;
    --brown-700: #4a3928;
    --brown-800: #3a2d1f;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic */
    --primary: var(--blue-400);
    --primary-dark: var(--blue-600);
    --accent: var(--brown-500);
    --accent-light: var(--brown-100);
    --accent-dark: var(--brown-700);
    --text: var(--gray-800);
    --text-light: var(--gray-500);
    --bg: var(--white);
    --bg-alt: var(--blue-50);
    --border: var(--gray-200);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container: 1200px;
    --gap: 24px;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

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

/* ---- Header ---- */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--brown-700);
    color: var(--brown-100);
    font-size: 0.8rem;
    padding: 6px 0;
}

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

.header-slogan {
    font-style: italic;
    opacity: 0.85;
}

.header-main {
    padding: 16px 0;
    border-bottom: 3px solid var(--primary);
}

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

.site-branding a { text-decoration: none; display: inline-block; }

.custom-logo-link { display: inline-block; }
.custom-logo {
    height: 90px !important;
    width: auto !important;
    max-width: 400px !important;
    display: block;
    object-fit: contain;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.title-squirrol { color: var(--accent-dark); }
.title-25 { color: var(--primary); }

.site-title-link:hover .title-squirrol { color: var(--accent); }
.site-title-link:hover .title-25 { color: var(--blue-300); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--accent-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ---- Navigation ---- */
.main-navigation {
    background: var(--blue-50);
    border-bottom: 1px solid var(--blue-100);
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brown-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu li.current-menu-item a {
    color: var(--primary-dark);
    background: var(--blue-100);
    border-bottom-color: var(--primary);
}

/* ---- Hero Section ---- */
.hero-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--brown-50) 100%);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero-image { overflow: hidden; }
.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s;
}
.hero-card:hover .hero-image img { transform: scale(1.03); }

.hero-content { padding: 32px 32px 32px 0; }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-title a { color: var(--text); }
.hero-title a:hover { color: var(--primary-dark); }

.hero-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ---- Category Badge ---- */
.category-badge {
    display: inline-block;
    background: var(--blue-100);
    color: var(--blue-600) !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* ---- Read More Button ---- */
.read-more-btn,
.read-more {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.read-more-btn:hover,
.read-more:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

/* ---- Section Headers ---- */
.section-latest,
.section-category {
    padding: 48px 0;
}

.section-category:nth-child(even) {
    background: var(--bg-alt);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--brown-200);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.view-all {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark) !important;
}

.view-all:hover { text-decoration: underline; }

/* ---- Article Grid ---- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.category-grid .card-horizontal {
    grid-row: 1 / 4;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.posts-grid .card-featured {
    grid-column: 1 / -1;
}

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.card-image {
    display: block;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.card-body { padding: 20px; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary-dark); }

.card-standard .card-title { font-size: 1.1rem; }
.card-featured .card-title { font-size: 1.5rem; }

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

/* Featured Card */
.card-featured {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.card-featured .card-image img { height: 320px; }
.card-featured .card-body { display: flex; flex-direction: column; justify-content: center; padding: 28px; }

/* Horizontal Card */
.card-horizontal {
    display: grid;
    grid-template-columns: 1fr;
}

.card-horizontal .card-image img { height: 260px; }

/* Small Card */
.card-small {
    display: flex;
    gap: 14px;
    padding: 12px;
    box-shadow: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}

.card-small:hover { transform: none; box-shadow: none; background: var(--blue-50); }

.card-small .card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.card-small .card-image img { width: 80px; height: 80px; }

.card-small .card-body { padding: 0; }
.card-small .card-title { font-size: 0.95rem; margin-bottom: 4px; }
.card-small .post-date { font-size: 0.78rem; color: var(--text-light); }

/* ---- Content Layout ---- */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

/* ---- Sidebar ---- */
.content-sidebar .widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-200);
}

.category-list li { margin-bottom: 8px; }

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
}

.category-list li a:hover {
    background: var(--blue-50);
    color: var(--primary-dark);
}

.cat-count {
    background: var(--blue-100);
    color: var(--blue-600);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.recent-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.recent-post-thumb img { width: 70px; height: 70px; object-fit: cover; }

.recent-post-info a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
    line-height: 1.4;
}

.recent-post-info a:hover { color: var(--primary-dark); }
.recent-post-info .post-date { font-size: 0.78rem; color: var(--text-light); }

/* Search form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form .search-submit {
    padding: 10px 18px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search-submit:hover { background: var(--accent-dark); }

/* ---- Single Article ---- */
.article-header {
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.article-featured-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

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

.article-content h2,
.article-content h3 {
    font-family: var(--font-heading);
    color: var(--text);
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.3rem; }

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--blue-50);
    padding: 20px 24px;
    margin: 1.5em 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-600);
}

.article-content img {
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
}

.article-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.article-tags { font-size: 0.9rem; }
.tag-label { font-weight: 600; color: var(--text); }

.article-share {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
}

.article-share a {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--blue-50);
    color: var(--blue-600) !important;
    font-weight: 500;
}

.article-share a:hover { background: var(--primary); color: var(--white) !important; }

/* Related Posts */
.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--brown-200);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.related-thumb {
    display: block;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-thumb img { transform: scale(1.05); }

.related-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 6px;
}

.related-card h4 a { color: var(--text); }
.related-card h4 a:hover { color: var(--primary-dark); }
.related-card .post-date { font-size: 0.8rem; color: var(--text-light); }

/* ---- Page ---- */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 0;
}

.page-header { margin-bottom: 32px; }

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-dark);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

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

.entry-content h2, .entry-content h3 {
    font-family: var(--font-heading);
    color: var(--text);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* ---- Archive Header ---- */
.archive-header {
    padding: 40px 0 20px;
    border-bottom: 3px solid var(--brown-200);
    margin-bottom: 8px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.archive-description {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

/* ---- 404 ---- */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    color: var(--blue-200);
    line-height: 1;
}

.error-404 h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Pagination ---- */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
}

.pagination a {
    background: var(--blue-50);
    color: var(--text);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

.pagination span.current {
    background: var(--accent);
    color: var(--white);
}

/* ---- No Posts ---- */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.no-posts p { color: var(--text-light); }

/* ---- Footer ---- */
.site-footer {
    background: var(--brown-800);
    color: var(--brown-200);
    margin-top: 60px;
}

.footer-main { padding: 48px 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-logo .title-squirrol { color: var(--brown-200); }
.footer-logo .title-25 { color: var(--blue-300); }

.footer-tagline {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--brown-300);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--brown-300);
}

.footer-nav h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brown-600);
}

.footer-nav ul li { margin-bottom: 10px; }

.footer-nav ul li a {
    color: var(--brown-300);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav ul li a:hover { color: var(--blue-300); }

.footer-bottom {
    background: var(--gray-900);
    padding: 16px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { display: none; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card { grid-template-columns: 1fr; }
    .hero-content { padding: 24px; }
    .hero-image img { height: 300px; }
    .card-featured { grid-template-columns: 1fr; }
    .card-featured .card-image img { height: 250px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
    }

    .main-navigation .nav-menu.active { display: flex; }

    .nav-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--blue-100);
    }

    .site-title { font-size: 1.8rem; }
    .header-slogan { display: none; }

    .articles-grid,
    .posts-grid { grid-template-columns: 1fr; }

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

    .article-title { font-size: 1.8rem; }

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

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .hero-section { padding: 20px 0; }
    .hero-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .site-title { font-size: 1.5rem; }
    .article-title { font-size: 1.5rem; }
    .section-title { font-size: 1.3rem; }
}

/* ---- WordPress Admin Bar Fix ---- */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

/* ---- Reading Time ---- */
.reading-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.reading-time::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* ---- Post Date ---- */
.post-date { color: var(--text-light); font-size: 0.85rem; }

/* ---- Comments ---- */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.comments-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent-dark); margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-body { padding: 20px; background: var(--gray-50); border-radius: var(--radius-sm); margin-bottom: 16px; }
.comment-author { font-weight: 600; margin-bottom: 8px; }
.comment-content p { font-size: 0.95rem; line-height: 1.6; }

/* ---- WordPress Alignment ---- */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; text-align: center; }
