/**
 * NameCheckup Frontend Menu Styles
 * WordPress Plugin CSS - Navigation and menu styling
 */

/* ==========================================================================
   Mobile Menu Styles
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 5px 0;
    transition: 0.3s;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Navigation */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-menu a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

.main-menu a.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Language Switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.language-switcher select {
    background: none;
    border: none;
    font-size: inherit;
    cursor: pointer;
}

.lang-menu-item {
    padding: 8px 15px;
    color: #2c3e50;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.lang-menu-item:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.facebook:hover {
    background: #166fe5;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.twitter:hover {
    background: #0d95e8;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.linkedin:hover {
    background: #006ba1;
}

.share-button.email {
    background: #6c757d;
}

.share-button.email:hover {
    background: #5a6268;
}

/* ==========================================================================
   Copy to Clipboard
   ========================================================================== */

.copy-to-clipboard {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-to-clipboard:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

/* ==========================================================================
   External Link Icons
   ========================================================================== */

.external-icon {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 4px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px;
    }

    .main-menu.active {
        left: 0;
    }

    .main-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-menu a {
        padding: 15px 25px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .main-menu a:hover,
    .main-menu a.active {
        background: #f8f9fa;
        border-left-color: #3498db;
        border-bottom-color: transparent;
    }

    .language-switcher {
        margin: 20px 25px;
    }

    .share-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-menu {
        width: 100%;
    }

    .share-button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .mobile-menu-toggle,
    .menu-overlay,
    .back-to-top,
    .share-buttons {
        display: none !important;
    }

    .main-menu {
        position: static !important;
        width: auto !important;
        height: auto !important;
        box-shadow: none !important;
        background: none !important;
    }

    .main-menu a {
        color: #000 !important;
        text-decoration: none !important;
    }
}
