/* ===== COUNTRY PAGE ENGAGEMENT ELEMENTS ===== */
/* Reading progress bar, tool CTAs, explore countries bar */
/* Injected on all country guide pages */

/* ===== READING PROGRESS BAR ===== */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 6px rgba(13, 148, 136, 0.5);
}

/* ===== TOOL CTA INLINE BOXES ===== */
.tool-cta-wrapper {
    max-width: 900px;
    margin: 0 auto 0;
    padding: 48px 24px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .tool-cta-wrapper {
        grid-template-columns: 1fr;
        padding: 36px 16px 8px;
    }
}

.tool-cta-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf9, #e0f7f5);
    border: 1px solid #99f6e4;
    border-left: 4px solid #0d9488;
    border-radius: 12px;
    padding: 20px 20px 20px 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tool-cta-box:hover {
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
    transform: translateY(-1px);
}

.tool-cta-box--gold {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
    border-left-color: #f59e0b;
}

.tool-cta-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.tool-cta-content {
    flex: 1;
}

.tool-cta-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f2044;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tool-cta-content p {
    font-size: 13px;
    color: #475569;
    margin: 0 0 12px;
    line-height: 1.5;
}

.tool-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0d9488;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.tool-cta-btn:hover {
    background: #0f766e;
    color: #fff;
}

.tool-cta-btn--gold {
    background: #f59e0b;
}

.tool-cta-btn--gold:hover {
    background: #d97706;
}

/* ===== EXPLORE MORE COUNTRIES BAR ===== */
.explore-countries-section {
    background: #0f2044;
    padding: 48px 0;
}

.explore-countries-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.explore-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.explore-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.explore-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #5eead4;
    text-decoration: none;
    transition: color 0.2s;
}

.explore-all-link:hover {
    color: #99f6e4;
    text-decoration: underline;
}

.explore-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .explore-scroll {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .explore-scroll {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }
    .explore-scroll::-webkit-scrollbar {
        height: 4px;
    }
    .explore-scroll::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
        border-radius: 2px;
    }
    .explore-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }
}

.explore-card {
    display: block;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px 16px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    scroll-snap-align: start;
}

.explore-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-2px);
}

@media (max-width: 540px) {
    .explore-card {
        min-width: 180px;
    }
}

.explore-card-flag {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.explore-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.explore-card-stat {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ===== ENHANCED ARTICLE CARDS (link wrapper) ===== */
a.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
}

.article-read-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.article-read-time {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.article-read-link {
    font-size: 13px;
    font-weight: 600;
    color: #0d9488;
    transition: color 0.15s;
}

a.article-card-link:hover .article-read-link {
    color: #0f766e;
}
