/*
Theme Name: OffPage Blog Theme
Description: Modern WordPress theme matching OffPage design exactly
Version: 2.0
Author: Your Name
Text Domain: offpage-theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    font-size: 16px;
    padding-top: 5rem;
}

/* Header - Fixed and Professional */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.site-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: #1e293b;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #4F46E5;
    border-radius: 50%;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #4F46E5;
}

.cta-button {
    background: #4F46E5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.cta-button:hover {
    background: #3b37d1;
    color: white;
    transform: translateY(-1px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Hero - Clean and Modern */
.blog-hero {
    background: linear-gradient(135deg, #faf9ff 0%, #f3f4f6 100%);
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.blog-hero p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Blog Layout - Wide and Professional */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 5rem;
    align-items: start;
    margin-bottom: 6rem;
}

/* Blog Posts Container */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Individual Blog Post - Professional Card Design */
.blog-post {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Strong visual separator between posts */
.blog-post + .blog-post {
    border-top: 3px solid #f1f5f9;
    margin-top: 4rem;
    padding-top: 4rem;
}

.post-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.post-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
    font-size: 1.125rem;
}

.post-content {
    padding: 2.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-category {
    background: #ddd6fe;
    color: #4F46E5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-category:hover {
    background: #4F46E5;
    color: white;
    transform: translateY(-2px);
}

.post-date {
    color: #64748b;
    font-weight: 500;
}

.post-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-excerpt {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.read-more:hover {
    gap: 0.75rem;
    color: #3b37d1;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Sidebar - Professional and Clean */
.sidebar {
    position: sticky;
    top: 9rem;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4F46E5;
    border-radius: 2px;
}

.categories-list {
    list-style: none;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.75rem;
}

.categories-list a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.categories-list a:hover {
    background: #ddd6fe;
    color: #4F46E5;
    transform: translateX(5px);
}

.category-count {
    background: white;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Single Post Layout - Much Wider and Better */
.single-post-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #faf9ff 0%, #f3f4f6 100%);
    border-radius: 16px;
}

.single-post-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.single-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-featured-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.5rem;
    font-weight: 500;
}

.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    max-width: 800px;
    margin: 0 auto;
}

.post-body h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 3rem 0 1.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.post-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 2.5rem;
    background: #4F46E5;
    border-radius: 2px;
}

.post-body h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2.5rem 0 1rem 0;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-body blockquote {
    border-left: 4px solid #4F46E5;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #faf9ff 0%, #f3f4f6 100%);
    border-radius: 8px;
    font-style: italic;
    color: #64748b;
    position: relative;
}

/* Comments Section - Modern Design */
.comments-area {
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4F46E5;
    border-radius: 2px;
}

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

.comment {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4F46E5;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.comment-author .avatar {
    border-radius: 50%;
    border: 3px solid #ddd6fe;
}

.comment-author .fn {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.125rem;
    text-decoration: none;
}

.comment-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.comment-content {
    line-height: 1.7;
    color: #374151;
}

.comment-reply-link {
    background: #4F46E5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: #3b37d1;
    transform: translateY(-1px);
    color: white;
}

/* Comment Form - Professional */
.comment-respond {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comment-reply-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4F46E5;
    border-radius: 2px;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

.comment-form-comment {
    margin-bottom: 1.5rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1.5rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit {
    background: #4F46E5;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit:hover {
    background: #3b37d1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5, #7c3aed);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.pagination a:hover {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.pagination .current {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .single-post-layout {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .container,
    .single-post-layout {
        padding: 0 1rem;
    }
    
    .nav-items {
        display: none;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1.125rem;
    }
    
    .single-post-title {
        font-size: 2.5rem;
    }
    
    .post-content {
        padding: 2rem;
    }
    
    .main-content {
        gap: 3rem;
    }
    
    .comments-area,
    .comment-respond {
        padding: 2rem;
    }
    
    .blog-layout {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 4rem;
    }
    
    .blog-hero {
        padding: 4rem 0;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-featured-image,
    .single-featured-placeholder {
        height: 300px;
    }
    
    .post-image {
        height: 250px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .main-content {
        gap: 2rem;
    }
    
    .comments-area,
    .comment-respond {
        padding: 1.5rem;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .post-body h2 {
        font-size: 1.75rem;
    }
}