/**
 * @file writer-board.css
 * @description Writer Board modal overlay for conversation goals (Synonyms, Rhymes, etc.)
 *
 * @requires base.css (CSS variables)
 * @usedBy index.php (#writer-board-modal)
 * @usedBy js/components/writer-board.js (openWriterBoard)
 *
 * @status INCOMPLETE
 * @todo Add styles for each conversation goal type
 * @todo Add Poetry tab styles
 */

/* ==================== WRITER BOARD MODAL ==================== */
.writer-board-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-light);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 3000;
    display: none;
    flex-direction: column;
}

.writer-board-modal.active {
    display: flex;
}

body.dark-mode .writer-board-modal {
    background: var(--card-dark);
}

/* ==================== HEADER ==================== */
.writer-board-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

body.dark-mode .writer-board-header {
    border-bottom-color: rgba(255,255,255,0.05);
}

.writer-board-title {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.writer-board-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.writer-board-close:hover {
    background: rgba(0,0,0,0.1);
}

body.dark-mode .writer-board-close {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .writer-board-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ==================== CONTENT ==================== */
.writer-board-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ==================== POETRY TABS ==================== */
.poetry-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.poetry-tab:hover {
    opacity: 0.8;
}

.poetry-tab.active {
    opacity: 1;
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.poetry-tab-content {
    display: none;
}

.poetry-tab-content.active {
    display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .writer-board-modal {
        width: calc(100% - 32px);
        max-height: calc(100vh - 32px);
        margin: 16px;
    }

    .writer-board-content {
        padding: 20px 16px;
    }

    .writer-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .writer-button {
        width: 100%;
    }
}
