/* Central Bank Watch — Featured Tools section on the homepage */

.cbw-featured-tools {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.75rem 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.cbw-featured-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.cbw-featured-tools-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cbw-featured-tools-header h2 i {
    color: #2563eb;
}

.cbw-featured-tools-header .new-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.cbw-featured-tools-header a.hub-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.cbw-featured-tools-header a.hub-link:hover {
    text-decoration: underline;
}

.cbw-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 992px) {
    .cbw-tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .cbw-tools-grid { grid-template-columns: 1fr; }
}

.cbw-tool-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.1rem 1.1rem 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    min-height: 165px;
}

.cbw-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
    border-color: #2563eb;
    color: inherit;
    text-decoration: none;
}

.cbw-tool-card .new-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.cbw-tool-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.cbw-tool-card .title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.cbw-tool-card .metric {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 0.65rem;
    flex: 1;
}

.cbw-tool-card .metric .val {
    color: #0f172a;
    font-weight: 600;
}

.cbw-tool-card .arrow {
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 600;
    margin-top: auto;
}

/* Ribbon expires automatically after the announcement window — Hugo template
   strips the ribbon span server-side once toolsAnnouncementEnd has passed. */
