/* ==========================================================================
   SmartFamilyEye - Elderly & Dementia Safety Article Stylesheet
   ========================================================================== */

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

/* Metadata Bar Enhancement */
.elderly-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;
}

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

.elderly-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;
}

/* Cover Image Enhancement */
.elderly-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;
}

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

.elderly-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;
}

/* ==========================================================================
   Interactive Localized Senior Safety Mockup Card
   ========================================================================== */
.elderly-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;
}

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

.elderly-card-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;
}

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

.elderly-card-icon {
    width: 36px;
    height: 36px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.elderly-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.elderly-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

/* Senior Profile Bar */
.elderly-senior-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.elderly-senior-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.elderly-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #0d9488);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.elderly-senior-info {
    display: flex;
    flex-direction: column;
}

.elderly-senior-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.elderly-senior-sub {
    font-size: 13px;
    color: #64748b;
}

.elderly-battery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

/* Address Box */
.elderly-address-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.elderly-addr-icon {
    font-size: 20px;
    line-height: 1;
}

.elderly-addr-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.elderly-addr-label {
    font-size: 11.5px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
}

.elderly-addr-text {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
}

.elderly-addr-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Safe Zones Box */
.elderly-zones-box {
    margin-bottom: 20px;
}

.elderly-box-title {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.elderly-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.elderly-zone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.elderly-zone-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
}

.elderly-zone-pill {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

.elderly-zone-pill.safe {
    background: #dcfce7;
    color: #15803d;
}

.elderly-zone-pill.neutral {
    background: #f1f5f9;
    color: #475569;
}

.elderly-zone-pill.scheduled {
    background: #e0f2fe;
    color: #0369a1;
}

/* Dual Features Grid (Shield & Screen) */
.elderly-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 680px) {
    .elderly-dual-grid {
        grid-template-columns: 1fr;
    }
}

.elderly-shield-panel,
.elderly-screen-panel {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.elderly-shield-panel {
    background: #fffbeb;
    border-color: #fde68a;
}

.elderly-screen-panel {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.elderly-panel-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.elderly-shield-panel .elderly-panel-heading {
    color: #b45309;
}

.elderly-screen-panel .elderly-panel-heading {
    color: #15803d;
}

.elderly-shield-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.45;
    margin-bottom: 8px;
}

.elderly-shield-item:last-child {
    margin-bottom: 0;
}

.elderly-screen-value {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.elderly-screen-sub {
    font-size: 12.5px;
    color: #166534;
}

/* SOS Banner */
.elderly-sos-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-weight: 700;
    font-size: 14.5px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    margin-bottom: 14px;
}

.elderly-mockup-footer {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

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

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

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

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

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

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

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

.elderly-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;
}

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

.elderly-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;
}

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

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