/* Calculadoras Nefrológicas — Renal Expert 2026 */

:root {
    --primary: #24417c;
    --primary-dark: #1a2b3c;
    --accent: #00adef;
    --text: #555;
    --bg-light: #f7fafd;
    --white: #ffffff;
    --border: #e2eaf2;
    --transition: all 0.3s ease;
}

/* ===== HERO ===== */
.calc-hero {
    background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 50%, #24417c 100%);
    padding: 90px 20px 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.calc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 60% 40%, rgba(0, 173, 239, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.calc-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.calc-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 700px;
}

.calc-hero h1 span {
    color: #7ec8e3;
}

.calc-hero p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 45px;
    opacity: 0.85;
    line-height: 1.6;
}

/* ===== BARRA DE BUSCA ===== */
.search-bar-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(0, 173, 239, 0.6);
}

.search-field {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 20px;
}

.search-field:not(:last-of-type) {
    border-right: 1px solid #eee;
}

.search-field i {
    color: var(--accent);
    margin-right: 12px;
    font-size: 16px;
}

.search-field input,
.search-field select {
    border: none;
    outline: none;
    padding: 12px 0;
    width: 100%;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

.search-btn-main {
    background: linear-gradient(135deg, var(--accent) 0%, #0078d4 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    margin-left: 10px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.search-btn-main:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 173, 239, 0.4);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: #f0f4f8;
    border-bottom: 1px solid #e0e8f0;
    padding: 16px 20px;
}

.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.stats-count {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.stats-count span {
    font-weight: 800;
    font-size: 1.2rem;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter-tag.all         { background: #eef2f8; color: var(--primary); }
.filter-tag.all.active  { background: var(--primary); color: #fff; }
.filter-tag.nutricao    { background: #e6f9f0; color: #057a55; border-color: #bcf0da; }
.filter-tag.diagnostico { background: #e8f0fe; color: #1a56db; border-color: #c3d4fd; }
.filter-tag.dialise     { background: #fff3e0; color: #c05621; border-color: #fbd38d; }
.filter-tag:hover       { opacity: 0.8; }

/* ===== GRID DE CARDS ===== */
.calc-container {
    max-width: 1200px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ===== CALC CARD ===== */
.calc-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
    border: 1px solid #eef2f8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.calc-card:hover:not(.coming-soon) {
    transform: translateY(-8px);
    box-shadow: 0 16px 45px rgba(36, 65, 124, 0.15);
    border-color: var(--accent);
}

.calc-card.coming-soon {
    opacity: 0.6;
    cursor: default;
    border-style: dashed;
}

.calc-card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.category-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.category-badge.nutricao    { background: #e6f9f0; color: #057a55; }
.category-badge.diagnostico { background: #e8f0fe; color: #1a56db; }
.category-badge.dialise     { background: #fff3e0; color: #c05621; }

.destaque-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f6c90e, #f5a623);
    color: #7a4a00;
    display: flex;
    align-items: center;
    gap: 4px;
}

.em-breve-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f4f8;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.calc-card-body {
    padding: 24px;
    flex-grow: 1;
}

.calc-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f4f8, #d0eaf5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.calc-icon-wrapper i {
    font-size: 1.6rem;
    color: var(--primary);
}

.calc-card-body h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.35;
    font-weight: 700;
}

.calc-description {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.calc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #888;
}

.calc-meta i {
    color: var(--accent);
    font-size: 13px;
}

.calc-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f4f8;
    background: #fafbfd;
}

.calc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 9px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    width: 100%;
}

.calc-card:hover:not(.coming-soon) .calc-btn {
    background: var(--primary);
    color: #fff;
}

.coming-soon .calc-btn {
    border-color: #ccc;
    color: #aaa;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
    color: #aaa;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: #ddd;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ===== CTA FINAL ===== */
.cta-section {
    background: linear-gradient(135deg, #24417c, #1a2d5a);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.85;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--white);
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 36px;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.3);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .calc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .calc-hero h1 { font-size: 2rem; }

    .search-bar-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
    }

    .search-bar-container .search-field,
    .search-bar-container .search-field:not(:last-of-type) {
        width: 100%;
        padding: 12px 15px;
        border-right: none;
        border-bottom: 1px solid #eee;
        flex: none;
    }

    .search-bar-container .search-field:last-of-type { border-bottom: none; }

    .search-bar-container .search-field input,
    .search-bar-container .search-field select { font-size: 16px; }

    .search-btn-main {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }

    .stats-bar-inner { flex-direction: column; align-items: flex-start; }

    .filter-tags {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-tag { white-space: nowrap; }

    .cta-section h2 { font-size: 1.4rem; }
}

@media (max-width: 600px) {
    .calc-grid { grid-template-columns: 1fr; }

    .calc-hero { padding: 70px 15px 60px; }
    .calc-hero h1 { font-size: 1.75rem; }
}
