/* public/css/apps/word_wall.css */

.word-wall-app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
    padding: 12px;
}

.word-wall-app-container .siteos-input {
    width: auto;
}

/* --- Toolbar --- */
.word-wall-control-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--pro-surface-alt);
    padding: 8px 10px;
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius-sm);
    flex-shrink: 0;
}

.word-wall-stats {
    font-size: 12px;
    font-weight: 500;
    color: var(--pro-text-muted);
    margin-left: auto;
}


/* --- Cloud pane --- */
.word-wall-main-layout {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius-sm);
}

.word-wall-cloud-pane {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
}

.word-wall-letter-section-header {
    width: 100%;
    box-sizing: border-box;
    background: var(--pro-surface-alt);
    color: var(--pro-accent-deep);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-top: 1px solid var(--pro-border);
    border-bottom: 1px solid var(--pro-border);
    position: sticky;
    top: 0;
    z-index: 5;
}
.word-wall-letter-section-header:first-child {
    border-top: none;
}

.word-wall-letter-section-header.favorites-header {
    color: var(--pro-warning);
    background: var(--pro-warning-tint);
}

.word-wall-letter-section-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}


/* --- Pills ---
 *   Tafsir (default) = outlined accent on surface
 *   Quran (.source-quran) = filled accent
 */
.word-wall-pill {
    display: inline-flex;
    align-items: center;
    background: var(--pro-surface);
    border: 1px solid var(--pro-accent);
    color: var(--pro-accent);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    transition: background var(--pro-transition), border-color var(--pro-transition), color var(--pro-transition);
    user-select: none;
    cursor: pointer;
}
.word-wall-pill:hover {
    background: var(--pro-accent-tint);
}
.word-wall-pill:focus-visible {
    outline: none;
    box-shadow: var(--pro-focus-ring);
}

.word-wall-pill.source-quran {
    background: var(--pro-accent);
    border-color: var(--pro-accent);
    color: var(--pro-text-inverse);
}
.word-wall-pill.source-quran:hover {
    background: var(--pro-accent-hover);
    border-color: var(--pro-accent-hover);
}

.word-wall-word-text {
    color: inherit;
    font-weight: 500;
}


/* --- Hits pane (search results overlay) --- */
.word-wall-hits-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pro-surface);
    z-index: 10;
    padding: 14px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.word-wall-hits-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pro-border);
    flex-shrink: 0;
}
.word-wall-hits-header h3 {
    margin: 0;
    font-size: 15px;
    color: var(--pro-accent-deep);
    font-weight: 600;
}

#word-wall-btn-close-hits {
    padding: 5px 10px;
    font-size: 12px;
}

.word-wall-hit-entry {
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius-sm);
    margin-bottom: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
}

.word-wall-hit-entry .location {
    font-weight: 600;
    font-size: 10px;
    color: var(--pro-accent-deep);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.word-wall-app-container mark {
    background: var(--pro-accent-tint-2);
    font-weight: 600;
    color: var(--pro-accent-deep);
    padding: 0 3px;
    border-radius: 2px;
}


/* --- States --- */
.word-wall-empty-state {
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--pro-text-muted);
    font-size: 14px;
}

.word-wall-loading {
    padding: 20px;
    text-align: center;
    color: var(--pro-text-muted);
    font-size: 13px;
}
