/* DR Multilingual Pro - Frontend Styles */

/* Language Switcher - Common */
.drmlp-language-switcher {
    display: inline-block;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.drmlp-flag {
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
    margin-right: 5px;
}

.drmlp-name {
    display: inline-block;
}

/* Dropdown Style */
.drmlp-style-dropdown .drmlp-switcher-toggle {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.drmlp-style-dropdown .drmlp-switcher-toggle:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.drmlp-style-dropdown .drmlp-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.drmlp-style-dropdown .drmlp-switcher-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 5px 0 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.drmlp-style-dropdown.drmlp-open .drmlp-switcher-menu {
    display: block;
}

.drmlp-style-dropdown.drmlp-open .drmlp-arrow {
    transform: rotate(180deg);
}

.drmlp-style-dropdown .drmlp-switcher-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.drmlp-style-dropdown .drmlp-switcher-menu li:last-child {
    border-bottom: none;
}

.drmlp-style-dropdown .drmlp-switcher-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.drmlp-style-dropdown .drmlp-switcher-menu a:hover {
    background: #f5f5f5;
}

.drmlp-style-dropdown .drmlp-switcher-menu .drmlp-current a {
    background: #e8f4f8;
    font-weight: 600;
}

/* List Style */
.drmlp-style-list .drmlp-switcher-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drmlp-style-list .drmlp-switcher-list li {
    margin: 0;
    padding: 0;
}

.drmlp-style-list .drmlp-switcher-list a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.drmlp-style-list .drmlp-switcher-list a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.drmlp-style-list .drmlp-switcher-list .drmlp-current a {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Flags Only Style */
.drmlp-style-flags .drmlp-switcher-flags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.drmlp-style-flags .drmlp-flag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s;
}

.drmlp-style-flags .drmlp-flag-link:hover {
    border-color: #2271b1;
    transform: scale(1.1);
}

.drmlp-style-flags .drmlp-flag-link.drmlp-current {
    border-color: #2271b1;
    background: #e8f4f8;
}

.drmlp-style-flags .drmlp-flag {
    margin: 0;
    font-size: inherit;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .drmlp-style-dropdown .drmlp-switcher-menu {
        right: 0;
        left: auto;
    }
    
    .drmlp-style-list .drmlp-switcher-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .drmlp-style-list .drmlp-switcher-list a {
        width: 100%;
        justify-content: flex-start;
    }
}
