/* Gemini Native TTS Frontend Styles */
.gemini-tts-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.gemini-tts-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.gemini-tts-icon {
    font-size: 26px;
    width: 44px;
    height: 44px;
    background: #fef3c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gemini-tts-title-wrap h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.gemini-tts-title-wrap span {
    font-size: 12px;
    color: #64748b;
}

.gemini-tts-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
}

.gemini-tts-input:focus {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.gemini-tts-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.gemini-tts-voice-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}

.gemini-tts-voice {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
}

.gemini-tts-btn-submit {
    background: #f59e0b;
    color: #0f172a;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.gemini-tts-btn-submit:hover {
    background: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
}

.gemini-tts-btn-submit:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.gemini-tts-result {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.gemini-audio-wrapper {
    background: #1e293b;
    border-radius: 12px;
    padding: 12px;
}

.gemini-download-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.gemini-btn-download-mp3 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f59e0b;
    color: #0f172a !important;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}

.gemini-btn-download-mp3:hover {
    background: #d97706;
    color: #ffffff !important;
}

.gemini-btn-download-mp3:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gemini-btn-download-wav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #334155;
    transition: background 0.2s;
}

.gemini-btn-download-wav:hover {
    background: #334155;
    color: #ffffff !important;
}

.gemini-tts-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    font-size: 13px;
}

/* Post Listen Box */
.gemini-post-listen-box {
    margin: 18px 0;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.gemini-btn-listen-article {
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.gemini-btn-listen-article:hover {
    background: #15803d;
}
