/**
 * Tools Hub - CSS Styles
 * Estilos para a página central de ferramentas
 */

/* CSS Variables */
:root {
    --hub-primary: #6366f1;
    --hub-primary-dark: #4f46e5;
    --hub-secondary: #f8fafc;
    --hub-success: #10b981;
    --hub-warning: #f59e0b;
    --hub-danger: #ef4444;
    --hub-text: #1e293b;
    --hub-text-light: #64748b;
    --hub-border: #e2e8f0;
    --hub-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hub-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --hub-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --hub-radius: 0.75rem;
    --hub-radius-lg: 1rem;
}

/* Base Styles */
.tools-hub {
    background: #f8fafc;
    min-height: 100vh;
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hub-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hub-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hub-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hub-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hub-hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hub-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hub-stat {
    text-align: center;
}

.hub-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.hub-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tools Section */
.hub-tools-section {
    margin-top: -3rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.hub-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: var(--hub-radius-lg);
    overflow: hidden;
    box-shadow: var(--hub-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hub-shadow-xl);
}

.tool-card-header {
    background: linear-gradient(135deg, var(--tool-color), color-mix(in srgb, var(--tool-color) 70%, #000));
    padding: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    color: var(--tool-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tool-card-body {
    padding: 1.5rem;
    flex: 1;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hub-text);
    margin-bottom: 0.75rem;
}

.tool-description {
    font-size: 0.9375rem;
    color: var(--hub-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-feature {
    background: var(--hub-secondary);
    color: var(--hub-text-light);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.tool-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--hub-border);
    background: var(--hub-secondary);
}

.tool-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--hub-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.3s ease;
}

.tool-card:hover .tool-cta {
    gap: 0.75rem;
}

/* Features Section */
.hub-features-section {
    padding: 4rem 0;
    background: white;
}

.hub-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--hub-text);
    margin-bottom: 3rem;
}

.hub-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.hub-feature {
    text-align: center;
    padding: 2rem;
}

.hub-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.hub-feature h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hub-text);
    margin-bottom: 0.75rem;
}

.hub-feature p {
    font-size: 0.9375rem;
    color: var(--hub-text-light);
    line-height: 1.6;
}

/* CTA Section */
.hub-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-primary-dark));
}

.hub-cta-content {
    text-align: center;
    color: white;
}

.hub-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hub-cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hub-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--hub-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: var(--hub-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hub-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hub-shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .hub-hero {
        padding: 3rem 0 5rem;
    }

    .hub-hero-stats {
        gap: 2rem;
    }

    .hub-stat-value {
        font-size: 1.5rem;
    }

    .hub-tools-grid {
        grid-template-columns: 1fr;
    }

    .hub-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hub-cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hub-features-grid {
        grid-template-columns: 1fr;
    }

    .hub-hero-title {
        font-size: 1.75rem;
    }
}
