/*
Theme Name: Tallystack Blog
Description: Custom theme matching Tallystack main site
Version: 1.0
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    text-decoration: none;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #f7941d;
}

.demo-btn {
    background: #f7941d !important;
    color: #fff !important;
    padding: 12px 25px !important;
    border-radius: 5px;
    display: inline-block;
}

.demo-btn:hover {
    background: #e8850a !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
}

/* Blog Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
}

/* Post Cards */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a {
    color: #222;
}

.post-title a:hover {
    color: #f7941d;
}

.post-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-excerpt {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    background: #f7941d;
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.read-more:hover {
    background: #e8850a;
    color: #fff;
}

/* Sidebar */
.sidebar .widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f7941d;
    color: #222;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.widget a {
    color: #555;
    transition: color 0.3s;
}

.widget a:hover {
    color: #f7941d;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    background: #fff;
    border-radius: 5px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pagination .current {
    background: #f7941d;
    color: #fff;
}

.pagination a:hover {
    background: #f7941d;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f7941d;
}

.footer-section p {
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f7941d;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 14px;
}

/* Single Post */
.single-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-post {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.single-title {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #222;
}

.single-meta {
    color: #888;
    margin-bottom: 25px;
    font-size: 14px;
}

.single-thumbnail {
    margin-bottom: 30px;
}

.single-thumbnail img {
    width: 100%;
    border-radius: 10px;
}

.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.single-content h2, .single-content h3, .single-content h4 {
    margin: 30px 0 15px;
    color: #222;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.single-content ul, .single-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.single-content li {
    margin-bottom: 10px;
}

/* Page Title */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: #aaa;
    font-size: 16px;
}
