/* ==========================================================================
   BLOG & POST GENERATOR STYLES (INTEGRATED PREMIUM CATEQUESE THEME)
   ========================================================================== */

/* Blog Section */
.blog-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.blog-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    padding: 16px 24px;
    background: rgba(14, 27, 43, 0.8);
    border: var(--border-gold);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.blog-actions-bar .author-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.blog-actions-bar .author-tag strong {
    color: var(--primary);
}

.blog-btn-group {
    display: flex;
    gap: 12px;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #070e17 !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.15);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #070e17;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-badge {
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #fff;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.read-more-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.ai-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    border-radius: 12px;
}

/* Modals */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 9, 15, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-modal.active {
    display: flex;
}

.blog-modal-content {
    background: #0d1826;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
    position: relative;
    padding: 32px;
}

.blog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.blog-modal-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

.blog-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.blog-modal-close:hover {
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #08101a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.illustration-preview-box {
    margin-top: 12px;
    padding: 16px;
    background: #08101a;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    text-align: center;
}

.illustration-preview-box img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Article Reader Modal */
.article-full-content {
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.05rem;
}

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

.article-full-content h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.article-full-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin: 20px 0;
    color: #f3e5ab;
    font-style: italic;
    background: rgba(212, 175, 55, 0.05);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.article-ebook-banner {
    margin-top: 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.7) 0%, rgba(14, 27, 43, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.article-ebook-banner h4 {
    color: #fff;
    margin: 0 0 6px 0;
    font-size: 1.3rem;
}

.article-ebook-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
