/* Main Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background-color: none;
    width: 100%;
    max-width: 1800px;
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 25px;
    cursor: pointer;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 55px;
    height: 55px;
    background-color: #000;
    mask: url("/assets/images/icons/CAT.svg") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("/assets/images/icons/CAT.svg") no-repeat center;
    -webkit-mask-size: contain;
    margin-top: 6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: "Rubik", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #000;
    letter-spacing: 0.01em;
}

.brand-tagline {
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
    font-size: 13.2px;
    color: #888;
    margin-top: -5px;
    margin-left: 2px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1000;
}

.nav-item-link {
    text-decoration: none;
}

.nav-item {
    font-family: "Rubik", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.tools-dropdown, .support {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.support:hover {
    opacity: 1;
    color: #f9595f;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    background-image: none;
    background-color: #000;
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f0f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f0f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.heart {
    width: 16px;
    height: 16px;
    background-image: url("/assets/images/icons/heart-red-blackOutline.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.light-dark {
    width: 20px;
    height: 20px;
    background-color: #888888;
    mask: url("/images/moon.png") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("/images/moon.png") no-repeat center;
    -webkit-mask-size: contain;
    cursor: pointer;
    transition: all 0.3s ease;
}

.light-dark:hover {
    opacity: 0.5;
}

/*saved for full nav bar implementation */
.divider {
    background-color: #cccccc;
    width: 1.3px;
    height: 24px;
}

/* ---------- Mobile Menu Styles ---------- */

/* Mobile Controls Container */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.mobile-theme-toggle {
    width: 20px;
    height: 20px;
    background-color: #888888;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    mask: url("/images/moon.png") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("/images/moon.png") no-repeat center;
    -webkit-mask-size: contain;
}

.mobile-theme-toggle:hover {
    opacity: 0.5;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 24px;
    justify-content: space-between;
    padding: 2px 0;
    flex-shrink: 0;
    margin-left: auto;
    box-sizing: border-box;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #888;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu close button */
.close-button {
    display: none;
    position: fixed;
    top: 30px;
    right: 20px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1001; /* Higher than mobile menu */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.close-button.active {
    display: flex;
}

.close-button::before,
.close-button::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.close-button:hover::before,
.close-button:hover::after {
    background-color: #000;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 380px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 32px 32px;
    box-sizing: border-box;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.mobile-nav-item {
    font-family: "Rubik", sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #000;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}

.mobile-nav .support {
    font-size: 18px;
}

.mobile-nav-item:hover {
    color: #000;
}

.mobile-tools-menu {
    font-family: "Rubik", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #000;
    margin: 0;
}

.tools-list {
    list-style: none;
    font-family: "Rubik", sans-serif;
    font-weight: 450;
    font-size: 18px;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.tools-list li, .tools-list a {
    text-decoration: none;
    color: #000;
    font-family: "Rubik", sans-serif;
    font-weight: 450;
    font-size: 18px;
}

#listNote {
    opacity: 0.5;
    font-style: italic;
    pointer-events: none;
    user-select: none;
}

/*
.mobile-tools-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-join-pro {
    background-color: #3b82f6;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    margin-top: 16px;
}

.mobile-join-pro:hover {
    background-color: #2563eb;
}*/

/* Navigation positioning context */
.tools-dropdown {
    position: relative;
}

/* Tools Dropdown Modal Styles */
.tools-dropdown-overlay {
    position: absolute;
    top: 0; /* Extend far upward for hover zone */
    right: -25px; /* Right-align with the Tools link */
    width: auto;
    min-width: 450px;
    max-width: 520px;
    height: 375px; /* Large height to cover viewport and create hover zone */
    background-color: transparent;
    display: block;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.tools-dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tools-dropdown-modal {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-height: 375px;
    overflow-y: auto;
    position: absolute;
    bottom: 92px; /* Position relative to bottom of overlay (which extends upward) */
    right: 0; /* Align right edge with right edge of Tools link */
}

.tools-dropdown-content {
    padding: 16px 8px;
}

.tools-dropdown-header {
    padding: 0 20px 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.tools-dropdown-title {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.tools-list-container {
    padding: 0 8px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    gap: 16px;
    transition: all 0.3s ease;
}

.tool-item.metro:hover {
    background-color: rgba(74, 158, 255, 0.1);
}

.tool-item:hover .tool-title.metro {
    color: #4a9eff;
}

.coming-soon {
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.coming-soon:hover {
    background: none;
}

.tool-icon-container {
    width: 25%;
    min-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    /*background-color: #bbb; /* TEMP */
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

/* tool menu icon img sizing */
.tool-icon-img {
    width: 65%;
    height: auto;
}

.tool-icon-img.metro {
    margin-left: 8px;
}

.tool-icon.coming-soon {
    
    border: 2px dashed rgba(0, 0, 0, 0.1);
    position: relative;
}

.tool-icon.coming-soon::after {
    content: '...';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #bbb;
    font-size: 18px;
    font-weight: bold;
}

.tool-content {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tool-title {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.tool-title.coming-soon {
    color: #bbb;
}

.tool-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #888;
    margin: 0;
    line-height: 1.3;
}

.tool-description.coming-soon {
    color: #bbb;
}



/* ========== Responsive Design ========== */

@media (max-width: 640px) {
    .header {
        padding: 16px 20px;
    }

    .navigation {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-section {
        scale: 0.8;
        transform-origin: left center;
    }

    .tools-dropdown-overlay {
        display: none; /* Hide on mobile - use mobile menu instead */
    }
}