/* ==========================================================================
   SmartFamilyEye - Multilingual Blog Article Visuals Stylesheet
   Covers: Gaming Addiction, GPS Safety, Sleep Quality, Social Media,
           Family Rules, Cyberbullying, and Senior Safety.
   ========================================================================== */

.blog-article-wrap {
    max-width: 900px;
    margin: 0 auto;
}

/* Cover Image Figure */
.blog-cover-figure {
    margin: 0 0 32px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.blog-cover-figure img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: cover !important;
}

.blog-cover-figure figcaption {
    padding: 12px 18px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13.5px;
    font-style: italic;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* Metadata Bar */
.blog-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #475569;
}

.blog-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-bar .blog-tag-badge {
    margin-left: auto;
    padding: 4px 12px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Lede Paragraph */
.blog-article-lede {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 500;
    margin-bottom: 32px;
    padding: 18px 22px;
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 0 12px 12px 0;
}

/* ==========================================================================
   Interactive Localized Mockup Cards
   ========================================================================== */
.blog-mockup-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin: 36px 0 44px 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
}

.blog-mockup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #2563eb 50%, #8b5cf6 100%);
}

/* Specific Card Themes */
.blog-mockup-card.card-gaming::before {
    background: linear-gradient(90deg, #7c3aed 0%, #2563eb 50%, #db2777 100%);
}

.blog-mockup-card.card-gps::before {
    background: linear-gradient(90deg, #059669 0%, #0284c7 50%, #10b981 100%);
}

.blog-mockup-card.card-sleep::before {
    background: linear-gradient(90deg, #1e1b4b 0%, #4338ca 50%, #d97706 100%);
}

.blog-mockup-card.card-social::before {
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
}

.blog-mockup-card.card-rules::before {
    background: linear-gradient(90deg, #0d9488 0%, #059669 50%, #d97706 100%);
}

.blog-mockup-card.card-cyberbullying::before {
    background: linear-gradient(90deg, #dc2626 0%, #ea580c 50%, #475569 100%);
}

/* Mockup Header */
.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.mockup-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-icon {
    font-size: 24px;
    line-height: 1;
}

.mockup-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.mockup-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.mockup-badge.warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.mockup-badge.danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.mockup-badge.night {
    background: #312e81;
    color: #e0e7ff;
    border-color: #4338ca;
}

/* Mockup Profile / Child Bar */
.mockup-profile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.mockup-profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid #bae6fd;
}

.mockup-profile-info {
    display: flex;
    flex-direction: column;
}

.mockup-profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.mockup-profile-sub {
    font-size: 12.5px;
    color: #64748b;
}

.mockup-metric-pill {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 700;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Highlight Box (GPS Address, Night Schedule, Quota) */
.mockup-highlight-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mockup-highlight-box.night {
    background: #1e1b4b;
    border-color: #3730a3;
    color: #e0e7ff;
}

.mockup-highlight-box.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.mockup-box-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.mockup-box-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mockup-box-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.5px;
}

.mockup-highlight-box.night .mockup-box-label {
    color: #a5b4fc;
}

.mockup-box-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.mockup-highlight-box.night .mockup-box-text {
    color: #ffffff;
}

.mockup-box-time {
    font-size: 12px;
    color: #64748b;
}

.mockup-highlight-box.night .mockup-box-time {
    color: #c7d2fe;
}

/* Rules / Zones List */
.mockup-rules-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.mockup-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.mockup-rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    gap: 10px;
}

.mockup-rule-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-weight: 500;
}

.mockup-rule-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
    flex-shrink: 0;
}

.mockup-rule-pill.warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.mockup-rule-pill.danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Prominent Action Banner Button */
.mockup-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    margin-bottom: 14px;
}

.mockup-action-btn.sos {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.mockup-action-btn.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.mockup-action-btn.night {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.25);
}

/* Mockup Footer Toast */
.mockup-footer {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Bullet Points in Article Section */
.blog-bullet-list {
    margin: 14px 0 0 0;
    padding-left: 20px;
}

.blog-bullet-list li {
    margin-bottom: 10px;
    color: #475569;
    line-height: 1.7;
    font-size: 15.5px;
}

/* Callout Note */
.blog-article-note {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.blog-article-note strong {
    color: #1e3a8a;
}

/* ==========================================================================
   Accordion FAQ Section
   ========================================================================== */
.blog-faq-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid #e2e8f0;
}

.blog-faq-heading {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.blog-faq-item[open] {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.blog-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.blog-faq-question::-webkit-details-marker {
    display: none;
}

.blog-faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.blog-faq-item[open] .blog-faq-icon {
    transform: rotate(45deg);
    background: #ecfdf5;
}

.blog-faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* RTL Support */
html[dir="rtl"] .blog-article-lede {
    border-left: none;
    border-right: 4px solid #10b981;
    border-radius: 12px 0 0 12px;
}

html[dir="rtl"] .blog-meta-bar .blog-tag-badge {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .blog-bullet-list {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .blog-article-note {
    border-left: none;
    border-right: 4px solid #3b82f6;
    border-radius: 12px 0 0 12px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .mockup-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .mockup-rule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .mockup-rule-pill {
        align-self: flex-start;
    }
    .mockup-profile-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
