/**
 * Geo Medical Cards Widget — Styles
 *
 * Matches the design in index.html:
 * dark header | country tabs | 3-column card grid
 */

/* ── Widget container ─────────────────────────────────────────────── */
.geo-medical-cards-widget {
    max-width: 100%;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-family: inherit;
}

/* ── Header ───────────────────────────────────────────────────────── */
.gmc-header {
    background-color: #1e1e1e;
    padding: 3rem 4rem;
    color: #ffffff;
}

.gmc-header-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gmc-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.gmc-icon-badge {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
}

.gmc-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1.2;
}

/* Status badge */
.gmc-status-badge {
    flex-shrink: 0;
    background-color: #F2CAC5;
    color: #1e1e1e;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    align-self: center;
}

.gmc-description {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.625;
    max-width: 42rem;
}

/* ── Tabs ─────────────────────────────────────────────────────────── */
.gmc-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.gmc-tab-btn {
    position: relative;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s ease;
    line-height: 1;
}

.gmc-tab-btn:hover {
    color: #64748b;
}

.gmc-tab-btn.active {
    color: #DF7467;
}

.gmc-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #DF7467;
    display: none;
    border-radius: 3px 3px 0 0;
}

.gmc-tab-btn.active .gmc-tab-indicator {
    display: block;
}

/* ── Cards grid area ──────────────────────────────────────────────── */
.gmc-cards-area {
    padding: 2rem 3rem;
    background: #ffffff;
}

.gmc-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ── Individual card ──────────────────────────────────────────────── */
.gmc-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gmc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.08);
}

/* Icon wrap */
.gmc-card-icon-wrap {
    width: 48px;
    height: 48px;
    background-color: rgba(223, 116, 103, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.gmc-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DF7467;
}

/* SVG icons */
.gmc-card-icon svg {
    display: block;
}

/* Font Awesome / icon-font icons */
.gmc-card-icon i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Uploaded SVG (img tag) */
.gmc-card-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Card title */
.gmc-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* Card subtext */
.gmc-card-subtext {
    margin: 0 0 auto;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.5;
    padding-bottom: 1rem;
}

/* CTA button */
.gmc-card-cta {
    display: block;
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    background-color: #DF7467;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    margin-top: 1.5rem;
    line-height: 1.4;
}

.gmc-card-cta:hover {
    background-color: #c66358;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.gmc-card-cta:focus-visible {
    outline: 2px solid #DF7467;
    outline-offset: 2px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .gmc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gmc-header {
        padding: 2rem 1.5rem;
    }

    .gmc-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .gmc-title {
        font-size: 1.5rem;
    }

    .gmc-tabs {
        gap: 1.5rem;
    }

    .gmc-cards-area {
        padding: 1.5rem;
    }

    .gmc-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gmc-header {
        padding: 1.5rem 1rem;
    }

    .gmc-cards-area {
        padding: 1rem;
    }

    .gmc-tab-btn {
        font-size: 0.8rem;
        padding: 0.75rem 0;
    }
}
