/* Blog-specific Styles */

.blog-hero {
    padding: 140px 20px 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* AdSense Container Styles */
.ad-container {
    margin: 40px auto;
    text-align: center;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ad-horizontal {
    max-width: 970px;
}

.ad-square {
    max-width: 336px;
}

.ad-sidebar {
    margin: 30px 0;
    position: sticky;
    top: 100px;
}

.ad-infeed {
    margin: 30px 0;
    grid-column: span 2;
}

/* Blog Section */
.blog-section {
    padding: 60px 20px;
    background: var(--light-bg);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-main {
    min-width: 0;
}

/* Featured Article */
.featured-article {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 60px;
    transition: all 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

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

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--warning);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
}

.featured-article .article-content {
    padding: 40px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.date, .read-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

.featured-article h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-article h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article h2 a:hover {
    color: var(--primary-color);
}

.featured-article p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

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

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}

.blog-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.pagination-dots {
    color: var(--text-light);
    font-weight: 600;
}

/* Sidebar */
.blog-sidebar {
    position: relative;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

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

.search-box button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Categories Widget */
.category-list {
    list-style: none;
}

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(5px);
}

.category-list span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Tools Widget */
.tools-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.tool-widget-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(5px);
}

.tool-icon {
    font-size: 1.5rem;
}

.tool-name {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.newsletter-widget h3 {
    color: white;
}

.newsletter-widget p {
    opacity: 0.95;
    margin-bottom: 16px;
}

.newsletter-widget .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-widget input {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
}

.newsletter-widget input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-widget button {
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-widget button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.recent-post-item:hover .recent-post-date,
.recent-post-item:hover .recent-post-title {
    color: white;
}

.recent-post-date {
    flex-shrink: 0;
    width: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.recent-post-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Blog Post Page Styles */
.post-hero {
    padding: 140px 20px 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.post-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-hero .post-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.post-meta span {
    opacity: 0.95;
}

.post-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.post-content {
    background: var(--white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.post-content p {
    line-height: 1.8;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

.post-content li {
    line-height: 1.8;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

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

.post-content a:hover {
    color: var(--secondary-color);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
}

.cta-box p {
    color: white;
    opacity: 0.95;
}

.cta-box .btn {
    margin-top: 1rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.share-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-facebook {
    background: #4267B2;
    color: white;
}

.share-linkedin {
    background: #0077B5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 968px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-infeed {
        grid-column: span 1;
    }
    
    .ad-sidebar {
        position: static;
    }
    
    .post-hero h1 {
        font-size: 2rem;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    
    .post-content {
        padding: 40px 30px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .featured-article .article-content {
        padding: 24px;
    }
    
    .featured-article h2 {
        font-size: 1.5rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content p, .post-content li {
        font-size: 1rem;
    }
}
