/**
 * Styles pour les shortcodes du thème
 */

/* Logo */
.synergin-logo {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.3s ease;
}

.synergin-logo:hover {
    opacity: 0.8;
}

.synergin-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
    display: block;
}

.synergin-logo-mobile img {
    max-height: 40px;
}

/* Icône User avec sous-menu */
.synergin-user-icon-wrapper {
    position: relative;
    display: inline-block;
}

.synergin-user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    color: inherit;
}

.synergin-user-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.synergin-user-svg {
    width: 33px;
    display: block;
}

.synergin-user-submenu {
    position: fixed;
    top: calc(4rem + 30px);
    min-width: 220px;
    background: linear-gradient(90deg, #8B5CF6 0%, #FF6B35 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.synergin-user-icon-wrapper.active .synergin-user-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.synergin-user-info {
    padding: 15px;
}

.synergin-user-name {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.synergin-user-email {
    display: block;
    font-size: 12px;
    color: white;
}

.synergin-user-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.synergin-user-menu li {
    margin: 0;
}

.synergin-user-menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.synergin-user-menu a:hover {
    background: #f5f5f5;
    color: #0073aa;
}

/* Groupe user + langue */
.synergin-user-lang-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language switcher */
.synergin-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.synergin-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    padding: 0 !important;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    line-height: 0;
    font-size: 0;
}

.synergin-lang-toggle:hover {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.synergin-lang-toggle img {
    object-fit: contain;
}

.synergin-lang-flag {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

.synergin-lang-code {
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

.synergin-lang-dropdown {
    position: fixed;
    min-width: 160px;
    background: linear-gradient(90deg, #8B5CF6 0%, #FF6B35 100%);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.synergin-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.synergin-lang-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.synergin-lang-item.active {
    font-weight: 700;
}

.synergin-lang-flag-small {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .synergin-logo img {
        max-height: 50px;
    }
    
    .synergin-logo-mobile img {
        max-height: 35px;
    }
    
    .synergin-user-submenu {
        right: -10px;
        min-width: 200px;
    }
}
