* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --focus-color: #ff6b35;
    --focus-outline: 3px solid #ff6b35;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-tooltip: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s ease;
    --transition-tooltip: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Skip Link para Acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Botão de Ajuda Flutuante */
.help-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.help-button:hover,
.help-button:focus {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    outline: var(--focus-outline);
    outline-offset: 2px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Modal de Ajuda Geral */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    backdrop-filter: blur(4px);
}

.modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-background);
    margin: auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-medium);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.help-content h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.help-content ul,
.help-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.help-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    text-decoration: underline;
    background-color: rgba(255, 107, 53, 0.1);
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.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");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Intro Section */
.intro-section {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-light);
}

.intro-section h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.intro-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.intro-section li {
    margin-bottom: 8px;
}

/* Calculator Sections */
.calculator-section {
    margin: 40px 0;
}

.calculator-section h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.calculator-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}

.calculator-card {
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    position: relative;
}

.calculator-card:hover {
    box-shadow: var(--shadow-medium);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: var(--transition-smooth);
    position: relative;
    min-height: 44px;
    min-width: 44px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.tab-btn:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.tab-btn.active {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.tab-btn.active::after {
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content[hidden] {
    display: none;
}

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

/* Forms */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-row input {
    flex: 1;
    text-align: center;
}

.separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

input[type="number"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: white;
    min-height: 44px;
}

input[type="number"]:focus,
select:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

input[type="number"]::placeholder {
    color: #adb5bd;
}

/* Texto de ajuda (holder) */
.help-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 6px;
    min-height: 20px;
}

/* Buttons - Usando <a> para CTAs conforme diretriz */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Results Box */
.result-box {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    outline: none;
}

.result-box:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.result-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    min-height: 44px;
    transition: transform 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
}

.result-item.full-width {
    grid-column: 1 / -1;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.result-value.highlight {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Provas Grid */
.provas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
    outline: none;
}

.provas-grid:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
    border-radius: 8px;
}

.prova-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-smooth);
    min-height: 44px;
}

.prova-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.prova-distancia {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
}

.prova-tempo {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f3ff;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Zones Section */
.zones-section {
    margin: 60px 0;
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.zones-section h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-align: center;
}

.zones-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.zone-card {
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid;
    min-height: 44px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.zone-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.zone-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pace-range {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

.zone-recuperacao { 
    background-color: #e3f2fd; 
    border-left-color: #2196f3;
}
.zone-recuperacao h3 { color: #1976d2; }
.zone-recuperacao .pace-range { background-color: #bbdefb; color: #1565c0; }

.zone-aerobio { 
    background-color: #e8f5e9; 
    border-left-color: #4caf50;
}
.zone-aerobio h3 { color: #388e3c; }
.zone-aerobio .pace-range { background-color: #c8e6c9; color: #2e7d32; }

.zone-limiar { 
    background-color: #fff9c4; 
    border-left-color: #fbc02d;
}
.zone-limiar h3 { color: #f57f17; }
.zone-limiar .pace-range { background-color: #fff59d; color: #f9a825; }

.zone-vo2 { 
    background-color: #ffebee; 
    border-left-color: #f44336;
}
.zone-vo2 h3 { color: #d32f2f; }
.zone-vo2 .pace-range { background-color: #ffcdd2; color: #c62828; }

/* Tips Section with Level Tabs */
.tips-section {
    margin: 40px 0;
    padding: 40px 0;
}

.tips-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.level-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.level-tab {
    padding: 12px 30px;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 44px;
    min-width: 44px;
}

.level-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.level-tab:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.level-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tips-content {
    display: none;
}

.tips-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tips-content[hidden] {
    display: none;
}

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

.tip-card {
    padding: 25px;
    background-color: var(--card-background);
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    min-height: 44px;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.tip-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.tip-card h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Injury Section */
.injury-section {
    margin: 60px 0;
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.injury-section h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
}

.injury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.injury-grid h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.injury-grid ul,
.injury-grid ol {
    margin-left: 20px;
}

.injury-grid li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.injury-grid strong {
    color: var(--text-primary);
}

/* Tools Section */
.tools-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.tools-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.tools-section .section-description {
    text-align: center;
    margin-bottom: 35px;
}

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

.tool-card {
    display: block;
    padding: 25px;
    background-color: var(--card-background);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    min-height: 44px;
}

.tool-card:hover,
.tool-card:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.tool-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* SEO Article */
.seo-article {
    margin: 60px 0;
    padding: 40px;
    background-color: var(--card-background);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.seo-article h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.seo-article h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.seo-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-article ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.seo-article li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.seo-article a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.seo-article a:hover,
.seo-article a:focus {
    text-decoration: underline;
    background-color: rgba(255, 107, 53, 0.1);
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    margin-top: auto;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--primary-color);
    outline: var(--focus-outline);
    outline-offset: 2px;
}

.footer-nav a:hover::after,
.footer-nav a:focus::after {
    transform: scaleX(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* VLibras Widget - garantir z-index adequado */
div[vw] {
    z-index: 9999 !important;
}

div[vw-access-button] {
    z-index: 9999 !important;
}

/* ===== NOVO: Estilos para o ícone de tooltip ===== */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    position: relative;
    transition: background-color 0.2s;
    vertical-align: middle;
    border: none;
    padding: 0;
    line-height: 1;
    min-width: 20px;
    min-height: 20px;
    outline: none;
}

.tooltip-icon:hover,
.tooltip-icon:focus {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Tooltip (balão) */
.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: var(--shadow-tooltip);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    pointer-events: none;
    font-weight: normal;
    line-height: 1.4;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
}

/* Triângulo do balão */
.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 6px;
    border-style: solid;
    border-color: var(--secondary-color) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
}

/* Exibir tooltip no hover e focus */
.tooltip-icon:hover::after,
.tooltip-icon:focus::after,
.tooltip-icon:hover::before,
.tooltip-icon:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Ajuste para dispositivos touch (clique mostra/esconde) */
@media (hover: none) {
    .tooltip-icon:active::after,
    .tooltip-icon:active::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Acessibilidade: foco visível */
.tooltip-icon:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

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

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

    .hero-icon {
        font-size: 48px;
    }

    .container {
        padding: 15px;
    }

    .calculator-section {
        margin: 30px 0;
    }

    .calculator-card {
        padding: 20px;
    }

    .tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .input-row {
        flex-wrap: wrap;
    }

    .result-box {
        grid-template-columns: 1fr;
    }

    .provas-grid {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 1.3rem;
    }

    .result-value.highlight {
        font-size: 1.6rem;
    }

    .zones-section,
    .injury-section,
    .seo-article {
        padding: 25px;
    }

    .level-tabs {
        flex-direction: column;
        align-items: center;
    }

    .level-tab {
        width: 100%;
        max-width: 300px;
    }

    .help-button {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

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

    .calculator-section h2,
    .zones-section h2,
    .tips-section h2,
    .injury-section h2,
    .seo-article h2 {
        font-size: 1.5rem;
    }

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

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #d84315;
        --secondary-color: #000000;
        --text-secondary: #000000;
    }
    
    .tab-btn:focus,
    .btn-primary:focus,
    a:focus,
    input:focus,
    select:focus {
        outline: 3px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-icon {
        animation: none;
    }
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Error State */
.error {
    border-color: #dc3545 !important;
}

/* Print Styles */
@media print {
    .help-button,
    .footer-nav,
    div[vw] {
        display: none !important;
    }
    
    .calculator-card,
    .zone-card,
    .tip-card {
        break-inside: avoid;
    }
}