﻿:root {
    --primary-color: #4A90E2;
    --secondary-color: #5DADE2;
    --accent-color: #7FB3D3;
    --light-blue: #AED6F1;
    --text-dark: #2C3E50;
    --bg-light: #F8F9FA;
}


.indireta-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: .10rem 0;
    margin-bottom: 2rem;
    border-radius: 0.50rem;
}

    .indireta-header .indireta-header__title {
        font-size: 1.7rem;
        font-weight: bold;
    }

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .stats-card:hover {
        transform: translateY(-5px);
    }

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stats-label {
    font-size: 1rem;
    opacity: 0.9;
}

.stats-icon {
    font-size: 3rem;

    width: 56px;
    height: 56px;
}

.search-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    margin-bottom: 2rem;
    display:flex;
    justify-content:center;
}

.search-input {
    border: 2px solid var(--light-blue);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 1rem;
}

    .search-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    }

.search-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0; /* cinza claro */
    border-radius: 0.5rem;
    width: 100%;
    max-width: 400px;
    background-color: #f8fafc; /* quase branco */
    gap: 0.5rem;
}

    .search-box svg {
        width: 1rem;
        height: 1rem;
        color: #64748b; /* cinza escuro */
    }

    .search-box input {
        border: none;
        outline: none;
        background: transparent;
        color: #334155;
        font-size: 0.95rem;
    }

        .search-box input::placeholder {
            color: #64748b;
        }

.section-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px 10px 0 0;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0;

}

.category-grid {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.25rem;
}

.category-item {
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: black;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    /*background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
}

.category-item:hover .category-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.category-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* controlado dentro */
    padding: .75rem;
    border-radius: .5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--light-blue));
}

.category-icon i{
    color:var(--bg-light);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 400;
    grid-column: 1 / span 2; /* Ocupa as 2 colunas */
    grid-row: 2; /* Na linha 2 da grid */

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    justify-self: start;
    align-self: center;
    line-height: 3;
    height: 2.6em; /* Aproximadamente 2 linhas */
    width: 100%;
}

.category-count {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    grid-row: span 1 / span 1;
    grid-column-start: 2;
    grid-row-start: 1;
    justify-self:end;
}

.category-count span{
    color:black;
}

.category-updated {
    font-size: 0.9rem;
    opacity: 0.9;
    grid-column:span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 3;
    justify-self: start;
    align-self:center;
}

.home-icon {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .indireta-header__title{
        font-size: 1.0rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .category-item {
        margin-bottom: 1rem;
    }
}
