/**
 * FIGELYS BLOG - Styles
 * Réutilise les variables CSS du site principal
 */

/* Blog Hero */
.blog-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: var(--bg-alt);
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.blog-search {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.blog-search form {
    position: relative;
    display: flex;
}

.blog-search input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.blog-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.blog-search button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Category Filters */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-filter {
    padding: 0.5rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.category-filter:hover,
.category-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
}

/* Articles Section */
.articles-section {
    padding: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Card */
.article-card {
    background: var(--glass);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.2);
}

.article-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-alt);
}

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

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.article-category {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.article-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.article-link:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.pagination-info {
    color: var(--text-muted);
    font-weight: 500;
}

/* Single Article Page */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs i {
    font-size: 0.625rem;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.article-title-main {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta-main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.article-meta-main span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-featured-image {
    aspect-ratio: 21/9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.article-body {
    padding: 3rem 0;
}

.article-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Article Content Styling (Quill Output) */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2.25rem;
    color: var(--primary);
}

.article-content h2 {
    font-size: 1.875rem;
    color: var(--primary);
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong {
    font-weight: 700;
    color: var(--text);
}

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

.article-content a:hover {
    color: var(--accent);
}

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

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.article-content code {
    padding: 0.25rem 0.5rem;
    background: var(--bg-alt);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.article-content pre {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    padding: 0;
    background: none;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.article-tag {
    padding: 0.375rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Share Buttons */
.article-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.article-share h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

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

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

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

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

.share-btn.email {
    background: var(--primary);
}

/* Related Articles */
.related-articles {
    padding: 4rem 0;
    background: var(--bg-alt);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-meta-main {
        gap: 1rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h1 {
        font-size: 1.75rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .share-buttons {
        justify-content: center;
    }
}
