/* Estilos Globais e Variáveis */
:root {
    --primary-color: #d32f2f; --secondary-color: #212121; --success-color: #2e7d32; --error-color: #c62828;
    --text-primary: #212121; --text-secondary: #757575; --background-light: #f5f5f5; --background-white: #ffffff;
    --border-color: #e0e0e0; --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08); --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius-medium: 12px; --radius-small: 6px; --transition: all 0.3s ease-in-out;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--text-primary); background: var(--background-light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { padding: 15px; background: var(--primary-color); color: white; border: none; border-radius: var(--radius-small); font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.btn:hover { background-color: #b71c1c; }
#alertContainer { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.alert { padding: 15px 25px; border-radius: var(--radius-small); color: white; font-weight: 500; box-shadow: var(--shadow-medium); min-width: 300px; text-align: center; animation: slideInDown 0.5s ease-out; }
.alert.alert-success { background-color: var(--success-color); }
.alert.alert-error { background-color: var(--error-color); }
@keyframes slideInDown { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; }
nav { display: flex; gap: 30px; }
nav a { text-decoration: none; color: var(--text-primary); font-weight: 500; }
.hero { padding: 60px 0; text-align: center; background: #333; color: white; }
.hero h2 { font-size: 42px; margin-bottom: 20px; }
.hero p { font-size: 18px; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.search-box input { width: 100%; max-width: 500px; padding: 15px 25px; border: 2px solid var(--border-color); border-radius: var(--radius-medium); font-size: 16px; }
.filter-bar { background-color: var(--primary-color); padding: 20px 0; position: sticky; top: 61px; z-index: 999; }
.filter-bar .container { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-btn { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-btn:hover { background: rgba(255, 255, 255, 0.2); }
.filter-btn.active { background: white; color: var(--primary-color); border-color: white; }
.services { padding: 60px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.service-card { background: var(--background-white); border-radius: var(--radius-medium); box-shadow: var(--shadow-light); transition: var(--transition); cursor: pointer; border: 1px solid var(--border-color); padding: 20px; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.service-logo { font-size: 28px; width: 50px; height: 50px; border-radius: 10px; background: var(--background-light); display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.service-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.service-category { font-size: 12px; color: var(--text-secondary); margin-bottom: 15px; flex-grow: 1; }
.service-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.difficulty { padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 500; }
.difficulty.easy { background: #e8f5e9; color: #388e3c; }
.difficulty.medium { background: #fffde7; color: #fbc02d; }
.difficulty.hard { background: #ffebee; color: #d32f2f; }
.success-rate { font-size: 12px; color: #388e3c; font-weight: 600; }
.load-more-container { text-align: center; margin-top: 40px; }
.suggest { padding: 80px 0; background-color: var(--background-white); }
.section-title { text-align: center; font-size: 36px; margin-bottom: 20px; }
.section-subtitle { text-align: center; font-size: 16px; color: var(--text-secondary); margin-bottom: 60px; }
.suggest form { max-width: 600px; margin: 0 auto; display: grid; gap: 20px; }
.suggest form input, .suggest form textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: var(--radius-small); font-size: 16px; }

/* NOVO RODAPÉ PROFISSIONAL */
.footer { background: var(--secondary-color); color: #ccc; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-section h4 { font-size: 16px; margin-bottom: 20px; color: white; text-transform: uppercase; }
.footer-section p { line-height: 1.7; }
.footer-logo { max-width: 180px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-section ul { list-style: none; padding: 0;}
.footer-section ul li { margin-bottom: 10px; }
.footer-section a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: white; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a { display: inline-block; width: 40px; height: 40px; background: #444; color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; font-weight: bold; font-size: 14px; transition: background-color 0.3s; }
.social-links a:hover { background-color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; color: #aaa; font-size: 14px; }

/* MODAL REDESENHADO */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.modal-content { background: var(--background-white); margin: 5% auto; padding: 0; border-radius: var(--radius-medium); width: 90%; max-width: 550px; position: relative; box-shadow: var(--shadow-medium); overflow: hidden; animation: slideUp 0.4s; }
.close { position: absolute; top: 10px; right: 15px; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.4); font-size: 32px; font-weight: bold; cursor: pointer; z-index: 10; opacity: 0.8; }
.close:hover { opacity: 1; }
.modal-difficulty { padding: 8px 25px; color: white; font-weight: 600; text-transform: uppercase; font-size: 14px; text-align: center; }
.modal-difficulty.easy { background-color: #66bb6a; }
.modal-difficulty.medium { background-color: #ffa726; }
.modal-difficulty.hard { background-color: #ef5350; }
.modal-header { display: flex; align-items: center; gap: 20px; padding: 20px 25px; }
.modal-logo { font-size: 32px; width: 60px; height: 60px; flex-shrink: 0; border-radius: 10px; background: var(--background-light); display: flex; align-items: center; justify-content: center; }
.modal-header-text { display: flex; flex-direction: column; }
.modal-title { font-size: 28px; font-weight: 700; margin: 0; }
.modal-meta { display: flex; gap: 10px; margin-top: 4px; }
.modal-service-id { font-size: 12px; color: var(--text-secondary); font-family: monospace; background-color: var(--background-light); padding: 2px 6px; border-radius: 4px; }
.modal-category { font-size: 12px; color: var(--text-secondary); background-color: var(--background-light); padding: 2px 6px; border-radius: 4px; }
.modal-body { padding: 0 25px 25px 25px; }
.modal-body p { margin-bottom: 25px; color: var(--text-primary); font-size: 16px; line-height: 1.7; }
.modal-feedback { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; padding: 10px; background-color: var(--background-light); border-radius: var(--radius-small); }
.feedback-group { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.feedback-btn { font-size: 24px; cursor: pointer; border: none; background: transparent; transition: transform 0.2s; }
.feedback-btn:hover { transform: scale(1.2); }
.feedback-count { font-size: 16px; color: var(--text-primary); }
.feedback-group.positive .feedback-count { color: var(--success-color); }
.feedback-group.negative .feedback-count { color: var(--error-color); }
.modal-body .btn-primary { display: block; width: 100%; text-align: center; text-decoration: none; font-size: 18px; padding: 18px; font-weight: 700; }
.modal-comments { padding: 0 25px 25px; }
.comments-toggle { color: var(--text-secondary); font-weight: 500; cursor: pointer; text-decoration: underline; }
.comments-toggle:hover { color: var(--primary-color); }
.comments-container { margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.modal-extra-content { padding: 0 25px 25px 25px; }
.modal-extra-content h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 15px; border-top: 1px solid var(--border-color); padding-top: 20px;}
#loadingSpinner { text-align: center; padding: 50px; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }