/**
 * BLOG & MAGAZINE STYLES
 * Mobile-first, SEO-optimized
 * 
 * @package StartBall
 */

/* ============================================================================
   BLOG LAYOUT
   ============================================================================ */

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-layout {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main {
    width: 100%;
    max-width: 100%;
}

/* Pas de sidebar - full width sur tous devices */

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs-list li::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumbs-list li:last-child::after {
    display: none;
}

.breadcrumbs-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-list a:hover {
    color: var(--primary-pink, #FF6B9D);
}

.breadcrumbs-list .active {
    color: #333;
    font-weight: 600;
}

/* ============================================================================
   BLOG HEADER
   ============================================================================ */

.blog-header {
    margin-bottom: 50px;
    text-align: center;
}

.blog-title {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.blog-title i {
    color: var(--primary-pink, #FF6B9D);
    margin-right: 10px;
}

.blog-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.blog-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 20px auto 0;
}

/* ============================================================================
   BLOG GRID (Archive)
   ============================================================================ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-pink, #FF6B9D), #FF1493);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.blog-card-meta i {
    margin-right: 6px;
}

.blog-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-pink, #FF6B9D);
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-pink, #FF6B9D);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 12px;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.blog-pagination {
    margin-top: 60px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    color: #333;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-pink, #FF6B9D);
    color: white;
    border-color: var(--primary-pink, #FF6B9D);
}

.pagination .page-numbers i {
    margin: 0 4px;
}

/* ============================================================================
   SINGLE POST
   ============================================================================ */

.single-post {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .single-post {
        padding: 20px;
    }
}

.single-post-header {
    margin-bottom: 40px;
}

.single-post-category {
    margin-bottom: 15px;
}

.single-post-category a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-pink, #FF6B9D), #FF1493);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-post-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
    color: #666;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post-meta i {
    color: var(--primary-pink, #FF6B9D);
}

.single-post-meta a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.single-post-meta a:hover {
    color: var(--primary-pink, #FF6B9D);
}

.single-post-image {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #999;
    font-style: italic;
    text-align: center;
}

/* ============================================================================
   TABLE OF CONTENTS
   ============================================================================ */

.table-of-contents {
    background: #f9f9f9;
    border-left: 4px solid var(--primary-pink, #FF6B9D);
    padding: 25px;
    margin: 40px 0;
    border-radius: 8px;
}

.table-of-contents h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

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

.toc-list li {
    margin-bottom: 10px;
}

.toc-list li.toc-level-3 {
    padding-left: 20px;
}

.toc-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--primary-pink, #FF6B9D);
}

/* ============================================================================
   POST CONTENT
   ============================================================================ */

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin: 40px 0;
}

.single-post-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-top: 20px;
}

.single-post-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

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

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0 20px 30px;
}

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

.single-post-content blockquote {
    border-left: 4px solid var(--primary-pink, #FF6B9D);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    font-size: 20px;
}

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

.single-post-content a {
    color: var(--primary-pink, #FF6B9D);
    text-decoration: underline;
}

.single-post-content a:hover {
    text-decoration: none;
}

/* ============================================================================
   POST TAGS
   ============================================================================ */

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
}

.single-post-tags i {
    color: var(--primary-pink, #FF6B9D);
    font-size: 18px;
}

.single-post-tags a {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    color: #666;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-post-tags a:hover {
    background: var(--primary-pink, #FF6B9D);
    color: white;
    border-color: var(--primary-pink, #FF6B9D);
}

/* ============================================================================
   SHARE BUTTONS
   ============================================================================ */

.single-post-share {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #FDF2F8, #FCE7F3);
    border-radius: 16px;
    text-align: center;
}

.single-post-share h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0A66C2; }
.share-pinterest { background: #E60023; }
.share-email { background: #666; }

/* ============================================================================
   AUTHOR BIO
   ============================================================================ */

.author-bio {
    display: flex;
    gap: 25px;
    padding: 30px;
    margin: 40px 0;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

.author-bio-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.author-bio-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.author-bio-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.author-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-pink, #FF6B9D);
    font-weight: 600;
    text-decoration: none;
}

.author-bio-link:hover {
    text-decoration: underline;
}

.author-bio-social {
    display: flex;
    gap: 10px;
}

.author-bio-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.author-bio-social a:hover {
    background: var(--primary-pink, #FF6B9D);
    color: white;
}

/* ============================================================================
   POST NAVIGATION
   ============================================================================ */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.post-navigation a {
    display: block;
    padding: 25px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    border-color: var(--primary-pink, #FF6B9D);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.nav-next {
    text-align: right;
}

/* ============================================================================
   RELATED POSTS
   ============================================================================ */

.related-posts {
    margin: 60px 0;
}

.related-posts-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-title i {
    color: var(--primary-pink, #FF6B9D);
    margin-right: 10px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.related-post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.related-post-category {
    background: var(--primary-pink, #FF6B9D);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.related-post-date {
    color: #999;
}

.related-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--primary-pink, #FF6B9D);
}

.related-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-post-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-pink, #FF6B9D);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.blog-sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

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

.widget li {
    margin-bottom: 12px;
}

.widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--primary-pink, #FF6B9D);
}

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

.popular-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.popular-posts-list a {
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.popular-posts-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-post-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-post-date {
    display: block;
    font-size: 12px;
    color: #999;
}

/* ============================================================================
   NO POSTS
   ============================================================================ */

.blog-no-posts {
    text-align: center;
    padding: 80px 20px;
}

.blog-no-posts h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.blog-no-posts p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}
