/* ==========================================================================
   MAMAN & MAESTRO - DYS ASSISTANCE & MAESTRO BAR / DYSVOCAL STYLES
   ========================================================================== */

/* OpenDyslexic Web Font Definition */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('https://cdn.jsdelivr.net/gh/antijingoist/opendyslexic@master/compiled/OpenDyslexic-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('https://cdn.jsdelivr.net/gh/antijingoist/opendyslexic@master/compiled/OpenDyslexic-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Dysvocal Syllable Coloring */
.syllable-1 {
    color: #2563EB !important; /* Vivid Blue */
    font-weight: 700;
}

.syllable-2 {
    color: #DC2626 !important; /* Vivid Red */
    font-weight: 700;
}

.syllable-3 {
    color: #059669 !important; /* Emerald Green */
    font-weight: 700;
}

.syllable-4 {
    color: #D97706 !important; /* Amber Gold */
    font-weight: 700;
}

.dysvocal-reading-highlight {
    background-color: #FEF08A !important; /* Soft yellow highlight during TTS reading */
    border-radius: 4px;
    padding: 2px 4px;
}

/* Maestro Bar Floating Assistant Bar */
.maestrobar-dock, .lexibar-dock {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maestrobar-header, .lexibar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maestrobar-title, .lexibar-title {
    font-weight: 700;
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.maestrobar-actions, .lexibar-actions {
    display: flex;
    gap: 8px;
}

/* Maestro Bar Word Predictor */
.maestrobar-predictor, .lexibar-predictor {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.predictor-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 2px solid var(--secondary-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.predictor-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.predictor-chip .pictogram {
    font-size: 1.2rem;
}

/* Visual Dictionary Card */
.maestrobar-dict-card, .lexibar-dict-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F8FAFC;
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.maestrobar-dict-img, .lexibar-dict-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
}

.maestrobar-synonyms, .lexibar-synonyms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.synonym-badge {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-title);
    cursor: pointer;
    transition: var(--transition-fast);
}

.synonym-badge:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Dys Accessibility Floating Toggle Bar */
.dys-accessibility-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 9999;
}

.dys-toggle-btn {
    background: var(--text-title);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-bounce);
}

.dys-toggle-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.dys-toggle-btn.active {
    background: var(--primary);
    border-color: white;
    box-shadow: var(--shadow-glow);
}
