/* ============================================
   MENTORING BOOK INTERATIVO - ESTILOS
   ============================================ */

/* ============================================
   RESET E VARIÁVEIS
   ============================================ */

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

:root {
    /* Cores */
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --accent: #FBBF24;
    --accent-dark: #F59E0B;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --background: #FFFFFF;
    --background-light: #F9FAFB;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.5s ease;
}

/* ============================================
   HTML E BODY
   ============================================ */

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
}

/* ============================================
   ANIMAÇÕES KEYFRAMES
   ============================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.mentoring-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ============================================
   HEADER
   ============================================ */

.mentoring-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    animation: slideInLeft 0.6s ease-out;
    flex-wrap: wrap;
}

.header-content {
    flex: 1;
    min-width: 250px;
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.header-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.header-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.page-counter {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.progress-bar-container {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 9.09%;
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.mentoring-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.page-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    animation: fadeInScale 0.6s ease-out;
}

.page-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.interactive-overlay > * {
    pointer-events: auto;
}

/* ============================================
   CAMPOS INTERATIVOS
   ============================================ */

.interactive-field {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(200, 200, 200, 0.3);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    resize: none;
    padding: 12px;
    transition: all var(--transition-normal);
    opacity: 1;
}

.interactive-field:focus {
    opacity: 1;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.interactive-field:not(:focus):not(:placeholder-shown) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(37, 99, 235, 0.3);
}

.interactive-field::placeholder {
    color: transparent;
}

/* Campos de texto */
.text-field {
    border: 2px solid rgba(200, 200, 200, 0.3);
    border-radius: 8px;
}

.text-field:focus {
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.text-field:not(:focus):not(:placeholder-shown) {
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
}

/* Checkboxes */
.checkbox-field {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-field:hover {
    transform: scale(1.1);
}

.checkbox-field:checked {
    background-color: var(--primary);
}

/* Campos com visibilidade ao passar o mouse */
.interactive-field.hover-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(200, 200, 200, 0.2);
    transition: all var(--transition-normal);
}

.interactive-overlay:hover .interactive-field.hover-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(200, 200, 200, 0.3);
}

.interactive-field.hover-visible:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary);
}

.interactive-field.hover-visible:not(:focus):not(:placeholder-shown) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(37, 99, 235, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.mentoring-footer {
    background: white;
    padding: 30px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    animation: slideUp 0.6s ease-out;
    flex-wrap: wrap;
}

/* ============================================
   BOTÕES
   ============================================ */

.footer-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left var(--transition-normal);
    z-index: 1;
}

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

.btn-icon {
    font-size: 16px;
    transition: transform var(--transition-normal);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Botão Primário */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover:not(:disabled) .btn-icon {
    transform: translateX(4px);
}

.btn-primary:active:not(:disabled) {
    animation: buttonClick 0.3s ease;
    transform: translateY(-1px);
}

.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-md);
}

/* Botão Secundário */
.btn-secondary {
    background: var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover:not(:disabled) {
    background: #D1D5DB;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover:not(:disabled) .btn-icon {
    transform: translateX(-4px);
}

.btn-secondary:active:not(:disabled) {
    animation: buttonClick 0.3s ease;
    transform: translateY(-1px);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-sm);
}

/* Botão Desabilitado */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   PAGE INDICATORS
   ============================================ */

.page-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.indicator:hover {
    background: var(--primary-light);
    transform: scale(1.3);
}

.indicator.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border-color: var(--primary);
}

.indicator.answered {
    background: var(--success);
}

.indicator.answered.active {
    background: var(--primary);
}

/* ============================================
   RESULTS VIEW
   ============================================ */

.results-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.results-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    animation: fadeInScale 0.6s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.results-header p {
    font-size: 16px;
    color: var(--text-light);
}

.results-summary {
    margin-bottom: 30px;
}

.results-summary h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-item {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background-light);
}

.answer-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.answer-content {
    font-size: 14px;
    color: var(--text);
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    word-break: break-word;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVIDADE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .mentoring-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .header-title {
        font-size: 22px;
    }

    .header-progress {
        width: 100%;
        justify-content: space-between;
        min-width: unset;
    }

    .mentoring-main {
        padding: 30px 15px;
    }

    .interactive-field {
        font-size: 13px;
        padding: 6px;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .mentoring-header {
        padding: 12px 15px;
    }

    .header-title {
        font-size: 18px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .header-progress {
        gap: 10px;
    }

    .page-counter {
        font-size: 14px;
    }

    .progress-bar-container {
        width: 80px;
    }

    .mentoring-main {
        padding: 20px 10px;
    }

    .interactive-field {
        font-size: 12px;
        padding: 4px;
    }

    .checkbox-field {
        width: 20px;
        height: 20px;
    }

    .mentoring-footer {
        padding: 15px;
        gap: 10px;
        flex-direction: column;
    }

    .footer-buttons {
        width: 100%;
        gap: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
        flex: 1;
    }

    .btn-text {
        display: none;
    }

    .btn-icon {
        font-size: 18px;
    }

    .page-indicators {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .indicator.active {
        width: 20px;
    }

    .results-card {
        padding: 20px;
    }

    .results-header h1 {
        font-size: 24px;
    }

    .results-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVIDADE - EXTRA SMALL
   ============================================ */

@media (max-width: 480px) {
    .header-title {
        font-size: 16px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .page-counter {
        font-size: 12px;
    }

    .interactive-field {
        font-size: 11px;
        padding: 3px;
    }

    .results-header h1 {
        font-size: 20px;
    }

    .answer-item {
        padding: 12px;
    }

    .answer-label {
        font-size: 12px;
    }

    .answer-content {
        font-size: 12px;
    }
}
