/* ===================================================================
   HOME FERRAMENTAS - Estilos da página inicial (seção de ferramentas)
   Extraído de index-ferramentas.php para cache externo
   =================================================================== */

.home-ferramentas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.featured-tool-section {
    margin-bottom: 60px;
}

.featured-tool-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.featured-tool-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.featured-tool-hero p {
    font-size: 1.2rem;
    margin: 0 0 24px 0;
    opacity: 0.95;
    line-height: 1.6;
}

.featured-tool-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-featured {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-featured-primary {
    background: white;
    color: #667eea;
}

.btn-featured-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-featured-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-featured-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === TOOLS SECTION === */
.tools-section {
    margin-top: 60px;
}

.tools-section-title {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #2d3748;
}

/* === CATEGORY SECTIONS (collapsible) === */
.home-categoria-section {
    margin-bottom: 24px;
}

.home-categoria-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.home-categoria-section-header:hover {
    background: #f0f4ff;
}

.home-categoria-section-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.home-categoria-count {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

.home-collapse-icon {
    margin-left: auto;
    font-size: 0.7rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.home-categoria-section.collapsed .home-collapse-icon {
    transform: rotate(-90deg);
}

.home-categoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    overflow: hidden;
}

.home-categoria-section.collapsed .home-categoria-grid {
    max-height: 0 !important;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* === COMPACT CARDS (matching ferramentas.php) === */
.home-ferramenta-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-ferramenta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.home-ferramenta-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-ferramenta-card .ferramenta-image {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.home-ferramenta-card .ferramenta-image a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-ferramenta-card .ferramenta-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.home-ferramenta-card:hover .ferramenta-image img {
    transform: scale(1.03);
}

.home-ferramenta-card .ferramenta-image a:hover {
    text-decoration: none;
}

.home-ferramenta-card .card-content h3 {
    margin: 0 0 4px 0;
    font-size: 0.88rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.25;
}

.home-ferramenta-card .card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.home-ferramenta-card .card-content h3 a:hover {
    color: #667eea;
}

.home-ferramenta-card .ferramenta-description {
    color: #6c757d;
    font-size: 0.76rem;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-ferramenta-card .ferramenta-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    margin-top: auto;
}

.home-ferramenta-card .ferramenta-meta span {
    background: #f8f9fa;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    color: #495057;
}

.home-ferramenta-card .canal-breadcrumb {
    background: #e9ecef !important;
    color: #6c757d !important;
    font-size: 0.66rem !important;
    opacity: 0.8;
    margin-left: auto !important;
}

.home-ferramenta-card .ferramenta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.home-ferramenta-card .tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 500;
}

.home-ferramenta-card .card-actions {
    display: flex;
}

.home-ferramenta-card .card-actions.centered {
    justify-content: center;
}

.home-ferramenta-card .btn-use {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.76rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.home-ferramenta-card .btn-use:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
    color: white;
    text-decoration: none;
}

.home-tools-no-results {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.home-tools-see-all {
    text-align: center;
    margin-top: 24px;
}

.home-tools-see-all a {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.home-tools-see-all a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .featured-tool-hero {
        padding: 24px;
    }

    .featured-tool-hero h1 {
        font-size: 1.75rem;
    }

    .home-categoria-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .home-ferramenta-card .ferramenta-image img {
        height: 80px;
    }

    .home-categoria-section-header h3 {
        font-size: 0.95rem;
    }

    .home-categoria-section-header {
        padding: 8px 12px;
    }
}
