/* Website Translator CSS */

/* মেইন ট্রান্সলেটর উইজেট */
#website-translator-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* পজিশন ভ্যারিয়েশন */
.wbtrans-position-top-right {
    top: 20px;
    right: 20px;
}

.wbtrans-position-top-left {
    top: 20px;
    left: 20px;
}

.wbtrans-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.wbtrans-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* ট্রান্সলেটর বাটন স্টাইল */
.wbtrans-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    outline: none;
}

.wbtrans-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.wbtrans-btn:active {
    transform: translateY(0);
}

.wbtrans-icon {
    font-size: 20px;
    line-height: 1;
}

.wbtrans-text {
    line-height: 1;
}

/* ড্রপডাউন মেনু */
.wbtrans-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.wbtrans-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ভাষা বাটন */
.wbtrans-lang-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    text-align: left;
}

.wbtrans-lang-btn:hover {
    background: #f3f4f6;
}

.wbtrans-lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wbtrans-flag {
    font-size: 24px;
    line-height: 1;
}

/* শর্টকোড স্টাইল */
.wbtrans-shortcode {
    position: relative;
    display: inline-block;
}

.wbtrans-btn-shortcode {
    position: relative;
}

.wbtrans-dropdown-shortcode {
    right: auto;
    left: 0;
}

/* লোডিং ইন্ডিকেটর */
.wbtrans-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    display: none;
}

.wbtrans-loading.active {
    display: block;
}

.wbtrans-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: wbtrans-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes wbtrans-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wbtrans-loading-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* মোবাইল রেস্পন্সিভ */
@media (max-width: 768px) {
    #website-translator-widget {
        top: 10px !important;
        right: 10px !important;
    }
    
    .wbtrans-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .wbtrans-text {
        display: none;
    }
    
    .wbtrans-icon {
        font-size: 24px;
    }
    
    .wbtrans-dropdown {
        min-width: 160px;
    }
}

/* ট্রান্সিশন ইফেক্ট */
.wbtrans-fade-in {
    animation: wbtrans-fadeIn 0.5s ease;
}

@keyframes wbtrans-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* টুলটিপ */
.wbtrans-tooltip {
    position: relative;
}

.wbtrans-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wbtrans-tooltip:hover::after {
    opacity: 1;
}

/* স্মুথ ট্রান্সিশন ফর কনটেন্ট */
body {
    transition: opacity 0.3s ease;
}

body.wbtrans-translating {
    pointer-events: none;
}

/* কাস্টম স্ক্রলবার */
.wbtrans-dropdown::-webkit-scrollbar {
    width: 6px;
}

.wbtrans-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wbtrans-dropdown::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.wbtrans-dropdown::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* এনিমেশন ক্লাস */
.wbtrans-bounce {
    animation: wbtrans-bounce 0.5s ease;
}

@keyframes wbtrans-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* সাকসেস মেসেজ */
.wbtrans-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 1000001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.wbtrans-success.active {
    opacity: 1;
    transform: translateX(0);
}

/* ইরর মেসেজ */
.wbtrans-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 1000001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.wbtrans-error.active {
    opacity: 1;
    transform: translateX(0);
}

/* প্রিন্ট স্টাইল */
@media print {
    #website-translator-widget,
    .wbtrans-shortcode {
        display: none !important;
    }
}

/* অ্যাক্সেসিবিলিটি */
.wbtrans-btn:focus,
.wbtrans-lang-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ডার্ক মোড সাপোর্ট */
@media (prefers-color-scheme: dark) {
    .wbtrans-dropdown {
        background: #1f2937;
    }
    
    .wbtrans-lang-btn {
        color: #f9fafb;
    }
    
    .wbtrans-lang-btn:hover {
        background: #374151;
    }
    
    .wbtrans-loading {
        background: rgba(31, 41, 55, 0.95);
    }
    
    .wbtrans-loading-text {
        color: #f9fafb;
    }
}
