/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-content h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Barra de progresso */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Seções principais */
.section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.section h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section h2 i {
    margin-right: 12px;
    color: #667eea;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Grid de categorias */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: #f8f9ff;
    border: 2px solid #e1e8ff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.category-card.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.category-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.category-card.selected i {
    color: #ffd700;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Steps do formulário VIRAL */
.viral-steps {
    margin-bottom: 40px;
}

.step {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.step.active {
    opacity: 1;
    transform: translateX(0);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-header h2 {
    margin: 0;
    margin-right: 20px;
}

.step-description {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}

/* Campos do formulário */
.question-container {
    margin-bottom: 30px;
}

.question-container label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.question-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e1e8ff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
}

.question-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.question-container textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Exemplos */
.examples-toggle {
    margin: 15px 0;
}

.toggle-examples {
    background: #f8f9ff;
    border: 1px solid #e1e8ff;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toggle-examples:hover {
    background: #667eea;
    color: white;
}

.examples {
    background: #f8f9ff;
    border: 1px solid #e1e8ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.examples h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1rem;
}

.example-item {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.example-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Botões de navegação */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Seção de resultado */
.result-container {
    margin-bottom: 40px;
}

.post-preview {
    background: #f8f9ff;
    border: 2px solid #e1e8ff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.post-preview h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.post-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.post-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Dicas */
.tips-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.tips-section h3 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tip-card {
    background: #f8f9ff;
    border: 1px solid #e1e8ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.tip-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

.tip-card h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.tip-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer i {
    color: #ff6b6b;
    margin: 0 5px;
}

/* Classes utilitárias */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 25px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
}
