/* WhatsIssue Multilingual Styles */

/* ── Translate Bar ── */
#wiml-translate-bar {
    position: fixed;
    bottom: 80px;
    left: 16px;
    z-index: 9998;
    font-family: inherit;
}

#wiml-lang-toggle {
    background: #1a1a2e;
    border: 2px solid #e84393;
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,67,147,.3);
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
#wiml-lang-toggle:hover {
    background: #e84393;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Language Panel ── */
#wiml-lang-panel {
    position: absolute;
    bottom: 52px;
    left: 0;
    background: #1a1a2e;
    border: 1px solid #2d2d5e;
    border-radius: 14px;
    padding: 0;
    width: 320px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    overflow: hidden;
}

.wiml-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #0d0d1a;
    border-bottom: 1px solid #2d2d5e;
    font-size: 13px;
    color: #aaa;
    font-weight: 600;
}

#wiml-panel-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}
#wiml-panel-close:hover { color: #e84393; }

.wiml-featured-langs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    padding: 14px;
    border-bottom: 1px solid #2d2d5e;
}

.wiml-lang-btn {
    background: #0d0d1a;
    border: 1px solid #2d2d5e;
    border-radius: 8px;
    padding: 8px 6px;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.wiml-lang-btn:hover { border-color: #e84393; background: #2d2d5e; }
.wiml-lang-btn.active { border-color: #e84393; background: rgba(232,67,147,.1); }
.wiml-flag { font-size: 20px; line-height: 1; }
.wiml-lang-name { font-size: 10px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }

.wiml-google-wrap {
    padding: 12px 14px;
    border-bottom: 1px solid #2d2d5e;
}

/* Override Google Translate default ugly style */
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget select {
    background: #0d0d1a !important;
    border: 1px solid #2d2d5e !important;
    color: #e2e8f0 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    width: 100% !important;
}
.goog-te-gadget-simple { border: none !important; background: transparent !important; }

.wiml-panel-footer {
    padding: 10px 14px;
    font-size: 11px;
    color: #555;
    text-align: center;
}
.wiml-panel-footer a { color: #e84393; text-decoration: none; }

/* ── Vent-to-Action Language Selector ── */
.wiml-lang-selector-wrap {
    background: #0d0d1a;
    border: 1px solid #2d2d5e;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.wiml-lang-selector-title {
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 10px;
}

.wiml-lang-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.wiml-pill {
    background: #1a1a2e;
    border: 1px solid #2d2d5e;
    color: #aaa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.wiml-pill:hover { border-color: #e84393; color: #e84393; }
.wiml-pill.active { background: #e84393; border-color: #e84393; color: #fff; }

.wiml-selected-lang {
    font-size: 12px;
    color: #888;
}

/* ── Multilingual summary box ── */
.wiml-summary-box {
    background: #0d0d1a;
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 18px;
    margin-top: 16px;
}
.wiml-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 10px;
}
.wiml-summary-text {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.7;
}

/* ── Translation notice on company pages ── */
.wiml-translate-notice {
    background: #1a1a2e;
    border: 1px solid #2d2d5e;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wiml-translate-notice button {
    background: transparent;
    border: 1px solid #e84393;
    color: #e84393;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.wiml-translate-notice button:hover { background: #e84393; color: #fff; }

/* Mobile */
@media (max-width: 480px) {
    #wiml-lang-panel { width: 280px; }
    .wiml-featured-langs { grid-template-columns: 1fr 1fr; }
    #wiml-translate-bar { bottom: 100px; }
}
