/* ===============================
   FERRAMENTAS PAGE STYLES
   =============================== */

.ferramentas-page {
    min-height: 100vh;
}

/* Hero Section */
.ferramentas-hero {
    background: white;
    padding: 40px 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-family-headings);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-image-main {
    width: 50%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 41, 163, 0.05) 0%, rgba(6, 41, 163, 0.1) 100%);
    border-radius: var(--border-radius-lg);
    color: var(--primary-color);
    opacity: 0.3;
}

/* Ferramentas Section */
.ferramentas-section {
    padding: 40px 0;
    background-color: #f9fafb;
}

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

/* Category Block */
.category-block {
    margin-bottom: 60px;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.category-icon-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.category-title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Category Header Hero Style */
.category-header-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding: 0;
}

.category-hero-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-hero-content {
    flex: 1;
}

.category-hero-title {
    font-family: var(--font-family-headings);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.category-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Disabled Category */
.category-block-disabled {
    opacity: 0.5;
}

.category-block-disabled .category-icon-img {
    opacity: 0.4;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tool Card */
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f3f4f6;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.tool-card-illustration {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tool-card-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.tool-card:hover .tool-card-illustration {
    transform: scale(1.05);
}

.illustration-content {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.tool-card:hover .illustration-content {
    transform: translateY(-4px);
}

.tool-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tool-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(6, 41, 163, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.tool-card-title {
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tool-card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-card-cta {
    gap: 12px;
    color: var(--tertiary-color);
}

.tool-card:hover .tool-card-cta svg {
    transform: translateX(4px);
}

.tool-card-cta svg {
    transition: transform 0.3s ease;
}

/* Coming Soon Card */
.tool-card-coming-soon {
    border: 2px dashed var(--border-color);
    cursor: default;
    opacity: 0.6;
}

.tool-card-coming-soon:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--border-color);
}

.tool-card-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--quaternary-color);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        min-height: 300px;
        order: -1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .ferramentas-hero {
        padding: 40px 0 40px;
    }

    .ferramentas-section {
        padding: 40px 0;
    }

    .category-header {
        gap: 12px;
    }

    .category-icon-img {
        width: 28px;
        height: 28px;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-header-hero {
        gap: 20px;
        margin-bottom: 32px;
    }

    .category-hero-icon {
        width: 56px;
        height: 56px;
    }

    .category-hero-title {
        font-size: 1.5rem;
    }

    .category-hero-subtitle {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tool-card-illustration {
        height: 160px;
    }

    .tool-card-content {
        padding: 20px;
    }

    .tool-card-title {
        font-size: 1.15rem;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tag {
        font-size: 0.75rem;
    }

    .hero-image {
        min-height: 250px;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-header-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .category-hero-icon {
        width: 48px;
        height: 48px;
    }

    .category-hero-title {
        font-size: 1.25rem;
    }

    .category-hero-subtitle {
        font-size: 0.95rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-card-illustration {
        height: 140px;
    }

    .illustration-content svg {
        width: 100px;
        height: 100px;
    }

    .tool-card-title {
        font-size: 1.1rem;
    }

    .tool-card-description {
        font-size: 0.9rem;
    }
}
