/* Elegant Mobile Menu - Frontend Styles */

.emm-container {
    display: none;
}

@media (max-width: 768px) {
    .emm-container {
        display: block;
    }
}

/* Toggle Button */
.emm-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: var(--emm-bg);
    border: 1px solid var(--emm-text);
    padding: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all var(--emm-animation-speed) ease;
}

.emm-container[data-position="left"] .emm-toggle {
    left: 20px;
    right: auto;
}

.emm-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--emm-text);
    transition: all var(--emm-animation-speed) ease;
}

.emm-toggle.active .emm-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.emm-toggle.active .emm-toggle-line:nth-child(2) {
    opacity: 0;
}

.emm-toggle.active .emm-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay */
.emm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--emm-overlay-opacity));
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--emm-animation-speed) ease;
}

.emm-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Panel */
.emm-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--emm-bg);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform var(--emm-animation-speed) ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.emm-container[data-position="left"] .emm-panel {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

.emm-panel.active {
    transform: translateX(0);
}

.emm-panel-inner {
    padding: 60px 20px 40px;
}

/* Close Button */
.emm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.emm-container[data-position="left"] .emm-close {
    left: 20px;
    right: auto;
}

.emm-close span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--emm-text);
    transform: rotate(45deg);
}

.emm-close span:last-child {
    transform: rotate(-45deg);
}

/* Menu Styles */
.emm-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emm-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.emm-menu-list a {
    display: block;
    padding: 15px 0;
    color: var(--emm-text);
    text-decoration: none;
    font-size: var(--emm-font-size);
    position: relative;
    transition: all 0.3s ease;
}

.emm-menu-list a:hover {
    color: var(--emm-accent);
    padding-left: 10px;
}

/* Submenu */
.emm-has-submenu {
    position: relative;
}

.emm-submenu-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emm-submenu-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--emm-text);
    border-bottom: 2px solid var(--emm-text);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.emm-submenu-toggle.active::after {
    transform: rotate(-135deg);
}

.emm-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.emm-submenu.active {
    max-height: 1000px;
}

.emm-submenu li {
    border-bottom: none;
}

.emm-submenu a {
    padding-left: 20px;
    font-size: calc(var(--emm-font-size) - 2px);
}

/* Secondary Menu */
.emm-menu-secondary {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.emm-contact {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.emm-contact-title {
    color: var(--emm-text);
    font-size: calc(var(--emm-font-size) + 2px);
    margin: 0 0 20px;
    font-weight: 600;
}

.emm-contact-item {
    margin-bottom: 15px;
    color: var(--emm-text);
    font-size: calc(var(--emm-font-size) - 2px);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.emm-contact-item a {
    color: var(--emm-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emm-contact-item a:hover {
    color: var(--emm-accent);
}

.emm-contact-item svg {
    flex-shrink: 0;
}

/* Social Media */
.emm-social {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.emm-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--emm-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emm-text);
    transition: all 0.3s ease;
}

.emm-social a:hover {
    background: var(--emm-text);
    color: var(--emm-bg);
    transform: translateY(-2px);
}