/* ── HappyCoders AI Translator — Frontend ─────────────────────────────────── */

.hc-language-switcher {
    margin: 24px 0;
    font-family: inherit;
}

/* Tab bar */
.hc-lang-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
}

.hc-lang-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    transition: color .2s, border-color .2s;
}

.hc-lang-tab:hover {
    color: #4f46e5;
}

.hc-lang-tab.hc-active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Content area */
.hc-translated-content {
    padding: 20px 0;
    animation: hcFadeIn .25s ease;
}

.hc-translated-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hc-loading-indicator {
    color: #6b7280;
    font-style: italic;
    padding: 20px 0;
}

/* Summary box — "At a glance" style */
.hc-post-summary {
    background: #fffbf0;
    border: 1px solid #e8d9a0;
    border-radius: 10px;
    padding: 18px 20px 14px;
    margin: 20px 0;
    font-size: .95em;
    line-height: 1.65;
    color: #3b2f00;
}

.hc-summary-header {
    font-size: 1.05em;
    font-weight: 700;
    color: #a07000;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hc-summary-icon {
    color: #c09000;
    font-size: 0.85em;
}

.hc-summary-sub {
    font-size: 0.8em;
    color: #b08020;
    font-style: italic;
    margin-bottom: 12px;
}

.hc-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-summary-list li {
    position: relative;
    padding: 8px 0 8px 0;
    border-top: 1px solid #e8d9a0;
    padding-left: 18px;
    line-height: 1.55;
}

.hc-summary-list li::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: #c09000;
    font-size: 1.1em;
    top: 8px;
}

@keyframes hcFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .hc-lang-tab { padding: 8px 14px; font-size: 13px; }
}
