/**
 * 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: 8px 12px;
    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: 24px;
    height: 24px;
    display: block;
}

.synergin-user-arrow {
    transition: transform 0.3s ease;
}

.synergin-user-icon-wrapper.active .synergin-user-arrow {
    transform: rotate(180deg);
}

.synergin-user-submenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 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;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

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

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

.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: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

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

/* 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;
    }
}
