/* =====================================================
   Claude Translate — Frontend Switcher Styles
   ===================================================== */

/* --- Base Switcher --- */
.ct-switcher {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    z-index: 9999;
}

/* Trigger Button */
.ct-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

.ct-trigger:hover {
    background: rgba(255,255,255,0.22);
}

.ct-trigger .ct-flag {
    font-size: 18px;
    line-height: 1;
}

.ct-trigger .ct-caret {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.ct-switcher.ct-open .ct-trigger .ct-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.ct-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #1e1e2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 6px;
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    animation: ct-fade-in 0.15s ease;
}

@keyframes ct-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ct-switcher.ct-open .ct-dropdown {
    display: block;
}

.ct-dropdown li {
    margin: 0;
    padding: 0;
}

.ct-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 7px;
    transition: background 0.15s;
    font-size: 14px;
}

.ct-dropdown li a:hover,
.ct-dropdown li[aria-selected="true"] a {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.ct-dropdown li[aria-selected="true"] a::after {
    content: "✓";
    margin-left: auto;
    opacity: 0.6;
    font-size: 12px;
}

.ct-dropdown .ct-flag {
    font-size: 20px;
    line-height: 1;
}

/* --- Floating Switcher --- */
.ct-floating {
    position: fixed;
    z-index: 99999;
}

.ct-pos-bottom-right { bottom: 24px; right: 24px; }
.ct-pos-bottom-left  { bottom: 24px; left: 24px; }
.ct-pos-top-right    { top: 24px;    right: 24px; }
.ct-pos-top-left     { top: 24px;    left: 24px; }

/* Adjust dropdown direction for top positions */
.ct-pos-top-right .ct-dropdown,
.ct-pos-top-left  .ct-dropdown {
    bottom: auto;
    top: calc(100% + 6px);
}

/* --- Inline (Shortcode) Switcher --- */
.ct-inline {
    display: inline-block;
    vertical-align: middle;
}

.ct-inline .ct-trigger {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.18);
    color: #333;
}

.ct-inline .ct-trigger:hover {
    background: rgba(0,0,0,0.14);
}

.ct-inline .ct-dropdown {
    bottom: auto;
    top: calc(100% + 6px);
    background: #fff;
    border-color: #ddd;
}

.ct-inline .ct-dropdown li a {
    color: #333;
}

.ct-inline .ct-dropdown li a:hover,
.ct-inline .ct-dropdown li[aria-selected="true"] a {
    background: #f0f0f0;
    color: #111;
}

/* =====================================================
   Claude Translate — Admin Styles
   ===================================================== */
.ct-admin h1 {
    margin-bottom: 20px;
}

.ct-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
}

.ct-admin-grid--single {
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 900px) {
    .ct-admin-grid,
    .ct-admin-grid--single {
        grid-template-columns: 1fr;
    }
}

.ct-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px 24px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.ct-card h2 {
    margin-top: 0;
    padding-top: 0;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ct-card--info {
    background: #f6f7f7;
}

.ct-help-table {
    border-collapse: collapse;
    width: 100%;
}

.ct-help-table td {
    padding: 4px 8px;
    font-size: 13px;
}

.ct-tip {
    background: #eaf6fb;
    border-left: 4px solid #00a0d2;
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
    margin-top: 16px;
}

.ct-tip h4 {
    margin: 0 0 8px;
}

.ct-tip ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}
