/* ============================================
   BLOG & ARTICLE STYLES
   Premium Magazine Layout
   ============================================ */

/* --- Blog Hero --- */
.blog-hero {
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    padding: 100px 0 140px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-hero .hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-hero .hero-shape {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
    fill: var(--color-light);
    /* Matches body background */
}

/* --- Featured Post --- */
.featured-post-section {
    margin-bottom: 5rem;
}

.featured-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    transition: transform 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.featured-image img,
.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-image img {
    transform: scale(1.05);
}

.placeholder-image {
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.custom-badge {
    background: var(--color-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-content h2 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.featured-content h2 a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: gap 0.2s;
}

.read-more-btn:hover {
    gap: 12px;
}

/* --- Blog Grid --- */
.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: var(--color-primary);
    border-radius: 4px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img,
.placeholder-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.placeholder-image-small {
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card h3 a:hover {
    color: var(--color-primary);
}

.blog-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.blog-pagination {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--color-text);
    margin: 0 5px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* --- Newsletter Box --- */
.newsletter-box {
    background: var(--color-text);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    color: white;
    margin-bottom: 4rem;
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--color-success);
    flex-shrink: 0;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.newsletter-form-wrapper {
    flex-grow: 1;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: var(--color-primary-hover);
}

/* --- Single Post Styles --- */

.read-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.read-progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.1s;
}

.article-header {
    background: white;
    padding: 120px 0 60px;
    /* Account for fixed header */
    border-bottom: 1px solid var(--color-border);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.container-medium {
    max-width: 1000px;
    margin: 0 auto;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-primary);
}

.article-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.15;
    color: var(--color-text);
}

.article-author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--color-text);
}

.read-time {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.header-share {
    margin-left: auto;
}

.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-light);
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share:hover {
    background: var(--color-primary);
    color: white;
}

.article-featured-image {
    margin: 2rem 0 3rem;
}

.article-featured-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 3rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--color-text);
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-text);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.tag-chip {
    background: var(--color-light);
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tag-chip:hover {
    background: var(--color-border);
}

.article-author-box {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-box-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.author-box-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 2.5rem;
}

.widget-ad {
    text-align: center;
}

.ad-placeholder-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ad-mockup {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.ad-placeholder-content.vertical .ad-mockup {
    height: 400px;
    width: 100%;
    border-radius: 8px;
}

.adsense-article-bottom .ad-mockup {
    height: 250px;
    border-radius: 8px;
}

.widget-related h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.related-post-card {
    display: flex;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.related-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img,
.placeholder-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumbnail {
    background: #e2e8f0;
}

.related-info h4 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.2s;
}

.related-post-card:hover h4 {
    color: var(--color-primary);
}

.related-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.widget-cta {
    background: linear-gradient(135deg, var(--color-text), #1e293b);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.widget-cta h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.widget-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 250px;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }

    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COMMENT FORM STYLES
   Premium Design for EmeFa Blog
   ============================================ */

/* Comment Section Container */
.comments-area {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

/* Comment Title */
#reply-title,
.comments-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A2E5C;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#reply-title::before,
.comments-title::before {
    content: '💬';
}

/* Logged in as message */
.logged-in-as {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.logged-in-as a {
    color: #0A2E5C;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.logged-in-as a:hover {
    color: #FFC107;
}

/* Comment notes */
.comment-notes {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.required-field-message .required {
    color: #ef4444;
    font-weight: 600;
}

/* Form Fields */
.comment-form-comment,
.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-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.comment-form-comment label .required,
.comment-form-author label .required,
.comment-form-email label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

/* Textarea */
.comment-form-comment textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fafc;
    color: #334155;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #0A2E5C;
    background: white;
    box-shadow: 0 0 0 4px rgba(10, 46, 92, 0.1);
}

.comment-form-comment textarea::placeholder {
    color: #94a3b8;
}

/* Input Fields */
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    background: #f8fafc;
    color: #334155;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #0A2E5C;
    background: white;
    box-shadow: 0 0 0 4px rgba(10, 46, 92, 0.1);
}

/* Cookies Consent */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: #0A2E5C;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    cursor: pointer;
}

/* Submit Button */
.form-submit {
    margin-top: 1.5rem;
}

.comment-form .submit,
#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FFC107 0%, #ffca28 100%);
    border: none;
    border-radius: 12px;
    color: #0A2E5C;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
}

.comment-form .submit:hover,
#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.comment-form .submit:active,
#submit:active {
    transform: translateY(0);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #0A2E5C;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    color: #0A2E5C;
}

.comment-metadata {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.comment-metadata a {
    color: #94a3b8;
    text-decoration: none;
}

.comment-content {
    color: #475569;
    line-height: 1.7;
}

.comment-content p {
    margin: 0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0A2E5C;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-reply-link:hover {
    color: #FFC107;
}

/* Nested Comments */
.children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

.children .comment {
    background: white;
    border-left-color: #FFC107;
}

/* No Comments Yet */
.no-comments {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-area {
        padding: 1.5rem;
        border-radius: 12px;
    }

    #reply-title,
    .comments-title {
        font-size: 1.25rem;
    }

    .comment-form-comment textarea {
        min-height: 140px;
    }

    .children {
        padding-left: 1rem;
    }
}