/* ================================
   BLOG STYLES - SendMeYourList
   ================================ */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.blog-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link .logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #38bdf8;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2338bdf8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.blog-hero p {
    color: #94a3b8;
    font-size: 1.25rem;
}

/* Blog Main Layout */
.blog-main {
    background: #0f172a;
    padding: 3rem 2rem;
    min-height: 60vh;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.category-btn.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.post-title {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-excerpt {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 1rem;
}

.sidebar-widget h3 {
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
}

.category-list,
.popular-lists {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.popular-lists li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
}

.category-list li:last-child,
.popular-lists li:last-child {
    border-bottom: none;
}

.category-list a,
.popular-lists a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover,
.popular-lists a:hover {
    color: #38bdf8;
}

.category-list .count {
    background: #334155;
    color: #64748b;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.subscribe-widget p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.rss-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f97316;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.rss-btn:hover {
    background: #ea580c;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.page-btn.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
}

.page-dots {
    color: #64748b;
    padding: 0.5rem;
}

/* Loading & Error States */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #334155;
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-posts,
.error {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    grid-column: 1 / -1;
}

/* ================================
   SINGLE POST STYLES
   ================================ */

.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-article {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-header {
    padding: 2rem 2rem 1rem;
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-header .post-meta {
    display: flex;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.post-body {
    padding: 0 2rem 2rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.post-body h2 {
    color: #f8fafc;
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}

.post-body h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.post-body p {
    margin-bottom: 1.25rem;
}

.post-body a {
    color: #38bdf8;
    text-decoration: none;
}

.post-body a:hover {
    text-decoration: underline;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid #38bdf8;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #94a3b8;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-body pre {
    background: #0f172a;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-body code {
    background: #334155;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.post-body pre code {
    background: none;
    padding: 0;
}

/* Tags */
.post-tags {
    padding: 0 2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #334155;
    color: #94a3b8;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Share Buttons */
.share-buttons {
    padding: 1.5rem 2rem;
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons span {
    color: #94a3b8;
    font-weight: 500;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.email { background: #64748b; }

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
    margin: 2rem;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.post-cta h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-cta p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    color: #0f172a;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    color: #f8fafc;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-image-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.related-card h4 {
    color: #f8fafc;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.related-date {
    display: block;
    padding: 0 1rem 1rem;
    color: #64748b;
    font-size: 0.75rem;
}

/* Back Button */
.back-to-blog {
    margin-top: 2rem;
    text-align: center;
}

.back-btn {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.back-btn:hover {
    text-decoration: underline;
}

/* Blog Footer */
.blog-footer {
    background: #1e293b;
    padding: 2rem;
    border-top: 1px solid #334155;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-links a:hover {
    color: #38bdf8;
}

/* ================================
   RESPONSIVE STYLES
   ================================ */

@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-header .post-title {
        font-size: 1.75rem;
    }

    .post-header .post-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .post-body {
        padding: 0 1.5rem 1.5rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-cta {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 1rem;
    }

    .blog-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .category-filter {
        justify-content: center;
    }

    .share-buttons {
        justify-content: center;
    }
}
