/* ============================================================
   FAST TOWN — BLOG STYLESHEET
   Based on LeaderInMe structure, styled for Fast Town
============================================================ */

/* Blog Layout */
.blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.blog-main {
    flex: 1 1 65%;
    min-width: 0; /* Prevents flex items from overflowing */
}

.blog-sidebar {
    flex: 1 1 30%;
    min-width: 280px;
}

/* Blog Grid (Index Page) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: #0a0a0a;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

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

.blog-card-image {
    display: block;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-card.featured .blog-card-image {
    height: 400px;
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tags {
    margin-bottom: 15px;
}

.blog-tag {
    display: inline-block;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.3s;
}

.blog-tag:hover {
    color: #fff;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card.featured h3 {
    font-size: 2.2rem;
}

.blog-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.blog-card h3 a:hover {
    opacity: 0.7;
}

.blog-card p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.read-more {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    align-self: flex-start;
    transition: opacity 0.3s;
}

.read-more:hover {
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link, .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: 1px solid #222;
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.page-dots {
    background: transparent;
    border-color: transparent;
}

/* Sidebar */
.sidebar-widget {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-form input {
    flex-grow: 1;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-form input:focus {
    border-color: #555;
}

.search-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #ccc;
}

/* Categories Widget */
.category-select {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
}

.category-select:focus {
    border-color: #555;
}

/* Popular Widget */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

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

.popular-list a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    line-height: 1.4;
    display: block;
}

.popular-list a:hover {
    color: #fff;
}

/* Single Post Styles */
.post-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.post-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.post-featured-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.post-intro {
    font-size: 1.25rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 30px;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.post-content h4 {
    color: #fff;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.post-content blockquote {
    margin: 40px 0;
    padding: 30px;
    border-left: 4px solid #fff;
    background: #111;
}

.post-content blockquote p {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: #fff;
}

.post-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 50px 0;
}

.post-takeaways {
    list-style-position: inside;
    margin-bottom: 30px;
    padding-left: 20px;
}

.post-takeaways li {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-featured-image {
        height: 300px;
    }
}

/* ============================================================
   ABOUT FAST TOWN SIDEBAR WIDGET
   ============================================================ */
.about-widget {
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%);
    border: 1px solid #1e3a5f;
    text-align: center;
    padding: 28px 22px;
}

.about-widget .serif-title {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.about-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 20px;
}

.about-cta-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 10px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
}

.about-cta-btn:hover {
    background: #d4af37;
    color: #000;
}

/* ============================================================
   NEWSLETTER SIDEBAR WIDGET
   ============================================================ */
.newsletter-sidebar-widget {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 24px 20px;
}

.newsletter-sidebar-widget h3 {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.newsletter-sidebar-widget p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 14px;
}

.newsletter-sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-sidebar-form input[type="email"] {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-sidebar-form input[type="email"]:focus {
    border-color: #d4af37;
}

.newsletter-sidebar-form button {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.newsletter-sidebar-form button:hover {
    background: #c49b2a;
}

.newsletter-fine-print {
    font-size: 0.75rem !important;
    color: #666 !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.newsletter-success {
    color: #d4af37;
    font-size: 0.9rem;
    padding: 10px 0;
    text-align: center;
}

/* ============================================================
   BREADCRUMB NAVIGATION
   ============================================================ */
.breadcrumb-nav {
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
}

.breadcrumb-list a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #d4af37;
}

.breadcrumb-list [aria-current="page"] {
    color: #ccc;
}

/* ============================================================
   POST META ENHANCEMENTS (tags, read time)
   ============================================================ */
.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tag {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    text-transform: uppercase;
}

.post-read-time {
    font-size: 0.8rem;
    color: #666;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.share-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
    margin-right: 6px;
}

.share-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.8; }

.share-linkedin { background: #0077b5; color: #fff; }
.share-twitter  { background: #000; color: #fff; border: 1px solid #333; }
.share-facebook { background: #1877f2; color: #fff; }
.share-copy     { background: #1a1a1a; color: #ccc; border: 1px solid #333; }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-posts {
    margin-top: 50px;
}

.related-posts .serif-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}

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

.related-card {
    text-decoration: none;
    color: inherit;
    background: #0a0a0a;
    border: 1px solid #222;
    transition: border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    border-color: #555;
    transform: translateY(-4px);
}

.related-card-image {
    height: 130px;
    background-size: cover;
    background-position: center;
}

.related-card-body {
    padding: 16px;
}

.related-card-body h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    color: #fff;
    margin: 8px 0 6px;
    line-height: 1.4;
}

.related-date {
    font-size: 0.75rem;
    color: #666;
}

/* ============================================================
   BLOG EYEBROW TEXT
   ============================================================ */
.blog-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #d4af37;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb-list {
        font-size: 0.75rem;
    }
}
