/* FLOWGLISH CONTENT */
.flowglish-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
}

/* Hub Banner */
.hub-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    margin-bottom: 20px;
}

.hub-icon {
    font-size: 1.8rem;
}

.hub-name {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Family Selector */
.family-selector {
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.family-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #606070;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pv-tabs {
    display: flex;
    gap: 12px;
}

.pv-tab {
    flex: 1;
    background: #12121a;
    border: 2px solid #2a2a3a;
    border-radius: 12px;
    padding: 14px 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: #606070;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pv-tab:hover {
    border-color: #a0a0b0;
    color: #a0a0b0;
}

.pv-tab.active {
    background: rgba(0, 212, 170, 0.1);
    border-color: #00d4aa;
    color: #00d4aa;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

/* Methodology Card */
.method-card {
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #7c3aed 100%);
}

.method-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #00d4aa;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.method-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #12121a;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #a0a0b0;
}

.method-step .num {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #7c3aed 100%);
    color: #0a0a0f;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

/* PV Header */
.pv-header {
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.pv-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pv-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pv-meaning {
    font-size: 0.95rem;
    color: #a0a0b0;
    margin-top: 4px;
}

.progress-container {
    background: #12121a;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #7c3aed 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #606070;
}

/* Level Tabs */
.levels-container {
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.level-tab {
    background: #12121a;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    color: #a0a0b0;
}

.level-tab:hover {
    border-color: #00d4aa;
    color: #ffffff;
}

.level-tab.active {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #7c3aed 100%);
    color: #0a0a0f;
    font-weight: 600;
}

.level-tab.completed {
    background: rgba(0, 212, 170, 0.15);
    border-color: #00d4aa;
    color: #00d4aa;
}

.level-tab .level-num {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

/* Phrase Card */
.phrase-card {
    background: #1a1a25;
    border: 1px solid #2a2a3a;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.phrase-counter {
    text-align: center;
    font-size: 0.85rem;
    color: #606070;
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
}

.audio-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.audio-btn button {
    background: #12121a;
    border: 2px solid #2a2a3a;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.audio-btn button:hover {
    border-color: #00d4aa;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.audio-btn button.playing {
    border-color: #00d4aa;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(0, 212, 170, 0); }
}

.phrase-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.nav-arrow {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #a0a0b0;
}

.nav-arrow:hover {
    border-color: #00d4aa;
    color: #00d4aa;
    transform: scale(1.05);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.phrase-text {
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    flex: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phrase-text .pv-highlight {
    color: #00d4aa;
    font-weight: 600;
}

/* Recording Section */
.recording-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.record-btn button {
    background: #12121a;
    border: 2px solid #2a2a3a;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.record-btn button:hover {
    border-color: #ef4444;
    transform: scale(1.05);
}

.record-btn button.recording {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
}

.recording-status {
    font-size: 0.85rem;
    color: #ef4444;
    display: none;
}

.recording-status.show {
    display: block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.playback-controls {
    display: none;
    align-items: center;
    gap: 12px;
    background: #12121a;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #2a2a3a;
}

.playback-controls.show {
    display: flex;
}

.playback-controls button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.playback-controls button:hover {
    background: #1a1a25;
}

.playback-controls .play-recorded {
    color: #00d4aa;
}

.playback-controls .delete-recorded {
    color: #ef4444;
}

.playback-label {
    font-size: 0.85rem;
    color: #a0a0b0;
}

/* Translation Section */
.translation-section {
    margin-bottom: 20px;
}

.language-flags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.flag-btn {
    background: #12121a;
    border: 3px solid #2a2a3a;
    border-radius: 12px;
    width: 52px;
    height: 52px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.flag-btn .color-bar {
    width: 28px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.flag-btn .lang-code {
    font-size: 0.7rem;
    font-weight: 600;
    color: #606070;
    letter-spacing: 0.5px;
}

/* Cores das bandeiras */
.flag-btn[data-lang="pt"] .color-bar {
    background: linear-gradient(135deg, #009739 50%, #FEDD00 50%);
}
.flag-btn[data-lang="pt"]:hover,
.flag-btn[data-lang="pt"].active {
    border-color: #009739;
    box-shadow: 0 0 15px rgba(0, 151, 57, 0.4);
}

.flag-btn[data-lang="es"] .color-bar {
    background: linear-gradient(180deg, #c60b1e 30%, #ffc400 30%, #ffc400 70%, #c60b1e 70%);
}
.flag-btn[data-lang="es"]:hover,
.flag-btn[data-lang="es"].active {
    border-color: #c60b1e;
    box-shadow: 0 0 15px rgba(198, 11, 30, 0.4);
}

.flag-btn[data-lang="fr"] .color-bar {
    background: linear-gradient(90deg, #002395 33%, #ffffff 33%, #ffffff 66%, #ed2939 66%);
}
.flag-btn[data-lang="fr"]:hover,
.flag-btn[data-lang="fr"].active {
    border-color: #002395;
    box-shadow: 0 0 15px rgba(0, 35, 149, 0.4);
}

.flag-btn[data-lang="ar"] .color-bar {
    background: #006c35;
}
.flag-btn[data-lang="ar"]:hover,
.flag-btn[data-lang="ar"].active {
    border-color: #006c35;
    box-shadow: 0 0 15px rgba(0, 108, 53, 0.4);
}

.flag-btn[data-lang="zh"] .color-bar {
    background: #de2910;
    position: relative;
}
.flag-btn[data-lang="zh"] .color-bar::after {
    content: '★';
    position: absolute;
    color: #ffde00;
    font-size: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.flag-btn[data-lang="zh"]:hover,
.flag-btn[data-lang="zh"].active {
    border-color: #de2910;
    box-shadow: 0 0 15px rgba(222, 41, 16, 0.4);
}

.flag-btn:hover {
    transform: scale(1.1);
}

.flag-btn:hover .lang-code,
.flag-btn.active .lang-code {
    color: #ffffff;
}

.translation-popup {
    background: #12121a;
    border: 1px solid #7c3aed;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    color: #a0a0b0;
    font-size: 1.1rem;
    display: none;
    direction: ltr;
}

.translation-popup.rtl {
    direction: rtl;
}

.translation-popup.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Bottom Actions */
.bottom-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mastered-btn {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #a0a0b0;
    font-family: 'Outfit', sans-serif;
}

.mastered-btn:hover {
    border-color: #00d4aa;
    color: #00d4aa;
}

.mastered-btn.checked {
    background: rgba(0, 212, 170, 0.15);
    border-color: #00d4aa;
    color: #00d4aa;
}

/* Celebration Modal */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.celebration-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.celebration-card {
    background: #1a1a25;
    border: 2px solid #00d4aa;
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.celebration-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
}

.celebration-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.celebration-points {
    color: #fbbf24;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.celebration-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0f;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.celebration-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .flowglish-content {
        padding: 12px;
    }

    .method-steps {
        flex-direction: column;
    }

    .levels-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .level-tab {
        padding: 8px 4px;
        font-size: 0.65rem;
    }

    .phrase-text {
        font-size: 1.3rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .pv-tabs {
        flex-direction: column;
    }

    .flag-btn {
        width: 42px;
        height: 42px;
    }
}
