/* Estilos HubSpot Modernos - Frontend */
.ingles-fluente-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.if-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e6ed;
    flex-wrap: wrap;
    gap: 20px;
}

.if-header h2 {
    color: #33475b;
    margin: 0;
    font-weight: 600;
    font-size: 28px;
}

.if-user-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.if-progress-bar {
    width: 200px;
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
}

.if-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7a59, #ff5a34);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.if-stats {
    font-size: 14px;
    color: #66788a;
}

.if-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: end;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.if-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.if-filter-group label {
    font-weight: 600;
    color: #33475b;
    font-size: 14px;
}

.if-filter-group select {
    padding: 12px;
    border: 2px solid #cbd6e2;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.if-filter-group select:focus {
    border-color: #ff7a59;
    outline: none;
}

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

.if-btn-primary {
    background: #ff7a59;
    color: white;
}

.if-btn-primary:hover {
    background: #ff5a34;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 89, 0.3);
}

.if-btn-secondary {
    background: #425b76;
    color: white;
}

.if-btn-secondary:hover {
    background: #33475b;
}

.if-btn-audio {
    background: #00a4bd;
    color: white;
}

.if-btn-audio:hover {
    background: #008da3;
}

.if-btn-remember {
    background: #34c759;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
}

.if-btn-remember:hover {
    background: #30b451;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.if-btn-forgot {
    background: #ff3b30;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
}

.if-btn-forgot:hover {
    background: #ff2a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.if-practice-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.if-current-phrase {
    margin-bottom: 30px;
}

.if-phrase-card {
    background: white;
    border: 2px solid #f0f4f8;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.if-phrase-card:hover {
    border-color: #ff7a59;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.if-english-phrase {
    color: #33475b;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.if-portuguese-translation {
    color: #66788a;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
}

.if-phrase-actions {
    margin-bottom: 20px;
}

.if-phrase-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.if-level-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.if-level-A1 { background: linear-gradient(135deg, #00a4bd, #008da3); }
.if-level-A2 { background: linear-gradient(135deg, #34c759, #30b451); }
.if-level-B1 { background: linear-gradient(135deg, #ff7a59, #ff5a34); }
.if-level-B2 { background: linear-gradient(135deg, #ff5a34, #e0492b); }
.if-level-C1 { background: linear-gradient(135deg, #8e55ea, #7b48d6); }
.if-level-C2 { background: linear-gradient(135deg, #c648c6, #b142b1); }

.if-component-tag {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #425b76;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.if-response-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.if-progress-info {
    text-align: center;
    color: #66788a;
    font-style: italic;
    margin-top: 20px;
}

.if-loading {
    text-align: center;
    padding: 60px 20px;
}

.if-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e6ed;
    border-top: 4px solid #ff7a59;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.if-unlock-card {
    background: white;
    border: 2px solid #ff7a59;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(255, 122, 89, 0.2);
}

.if-unlock-card h3 {
    color: #33475b;
    margin-bottom: 15px;
    font-size: 24px;
}

.if-unlock-card p {
    color: #66788a;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.if-login-required {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.if-login-required p {
    font-size: 18px;
    color: #66788a;
    margin-bottom: 20px;
}

/* Notificações */
.if-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.if-notification.show {
    transform: translateX(0);
}

.if-notification.success {
    background: #34c759;
}

.if-notification.error {
    background: #ff3b30;
}

.if-notification.info {
    background: #00a4bd;
}

/* Responsividade */
@media (max-width: 768px) {
    .ingles-fluente-frontend {
        padding: 15px;
    }
    
    .if-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .if-user-progress {
        justify-content: center;
    }
    
    .if-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .if-filter-group {
        min-width: auto;
    }
    
    .if-response-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .if-btn-remember,
    .if-btn-forgot {
        width: 200px;
        justify-content: center;
    }
    
    .if-phrase-card {
        padding: 20px;
    }
    
    .if-english-phrase {
        font-size: 20px;
    }
    
    .if-portuguese-translation {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .if-phrase-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .if-practice-container {
        padding: 20px 15px;
    }
}