/**
 * My3DZones - MyLiveConnect Integration Styles
 * Bouton 3D dans le header + menu dropdown
 */

/* Variables from MyLiveConnect branding */
:root {
    --my3dz-primary: #a93442;
    --my3dz-secondary: #5C0F34;
    --my3dz-text: #333;
    --my3dz-text-light: #666;
    --my3dz-bg: #fff;
    --my3dz-border: #e0e0e0;
    --my3dz-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==========================================
   3D HEADER BUTTON
   ========================================== */

.my3dz-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--btn-color, var(--my3dz-primary)), var(--my3dz-secondary));
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(169, 52, 66, 0.3);
}

.my3dz-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(169, 52, 66, 0.4);
    color: #fff !important;
}

.my3dz-header-btn .my3dz-btn-icon {
    display: flex;
    align-items: center;
}

.my3dz-header-btn .my3dz-btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Animation on the button */
.my3dz-header-btn .my3dz-btn-icon svg {
    animation: my3dz-pulse 2s ease-in-out infinite;
}

@keyframes my3dz-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Mobile: icon only */
@media (max-width: 768px) {
    .my3dz-header-btn .my3dz-btn-text {
        display: none;
    }
    
    .my3dz-header-btn {
        padding: 8px 12px;
    }
}

/* ==========================================
   DROPDOWN MENU
   ========================================== */

.my3dz-dropdown {
    position: relative;
    display: inline-block;
}

.my3dz-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--my3dz-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--my3dz-text);
}

.my3dz-dropdown-toggle:hover {
    background: rgba(169, 52, 66, 0.1);
    border-color: var(--my3dz-primary);
    color: var(--my3dz-primary);
}

.my3dz-dropdown-toggle svg {
    width: 20px;
    height: 20px;
}

/* Dropdown Menu */
.my3dz-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 250px;
    background: var(--my3dz-bg);
    border-radius: 12px;
    box-shadow: var(--my3dz-shadow);
    border: 1px solid var(--my3dz-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.my3dz-dropdown.is-open .my3dz-dropdown-menu,
.my3dz-dropdown:focus-within .my3dz-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Arrow */
.my3dz-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: var(--my3dz-bg);
    border-top: 1px solid var(--my3dz-border);
    border-left: 1px solid var(--my3dz-border);
    transform: rotate(45deg);
}

/* Dropdown Sections */
.my3dz-dropdown-section {
    padding: 10px 0;
}

.my3dz-dropdown-section:first-child {
    padding-top: 15px;
}

.my3dz-dropdown-section:last-child {
    padding-bottom: 15px;
}

.my3dz-dropdown-header {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--my3dz-text-light);
    letter-spacing: 0.5px;
}

.my3dz-dropdown-divider {
    height: 1px;
    background: var(--my3dz-border);
    margin: 5px 15px;
}

/* Dropdown Items */
.my3dz-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--my3dz-text) !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.my3dz-dropdown-item:hover {
    background: rgba(169, 52, 66, 0.08);
    color: var(--my3dz-primary) !important;
}

.my3dz-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.my3dz-dropdown-item:hover svg {
    opacity: 1;
    color: var(--my3dz-primary);
}

/* Badge */
.my3dz-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto;
    background: var(--my3dz-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

/* Login Prompt */
.my3dz-login-prompt {
    text-align: center;
    padding: 20px !important;
}

.my3dz-login-prompt p {
    margin: 0 0 15px 0;
    color: var(--my3dz-text-light);
    font-size: 13px;
}

/* Buttons */
.my3dz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.my3dz-btn-primary {
    background: var(--my3dz-primary);
    color: #fff !important;
}

.my3dz-btn-primary:hover {
    background: var(--my3dz-secondary);
    transform: translateY(-1px);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */

.my3dz-footer-section {
    margin-bottom: 30px;
}

.my3dz-footer-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--my3dz-text);
}

.my3dz-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.my3dz-footer-links li {
    margin-bottom: 8px;
}

.my3dz-footer-links a {
    color: var(--my3dz-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.my3dz-footer-links a:hover {
    color: var(--my3dz-primary);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 480px) {
    .my3dz-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        margin-top: 0;
    }
    
    .my3dz-dropdown-menu::before {
        display: none;
    }
    
    .my3dz-dropdown.is-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
}
