@import url('https://fonts.googleapis.com/css2?family=Josefin+Slab:wght@400;500;600;700&family=Crimson+Pro:wght@400;500;600&display=swap');

:root {
    --accent: #ff490a;
    --accent-light: #ff703e;
    --text-light: #fffffe;
    --font-accent: 'Josefin Slab', serif;
    --font-text: 'Crimson Pro', serif;
    /* guides are authored against a 16px root (rem/Tailwind sizing) */
    font-size: 100%;
}

body, html {
    position: relative;
    margin: 0;
    padding: 0;
}

/* logo and more guides area styles */
.top-nav-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 12px 24px;
    z-index: 100;
    line-height: normal;

    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Glass effect */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    pointer-events: none;
}
.top-nav-overlay > * {
    pointer-events: auto; /* enable clicks for logo and dropdown */
}

.logo-container {
    display: flex;
    align-items: center;
    width: 20%;
}
#logo {
    max-width: 200px;
    translate: 0px 5px;
    filter: saturate(0.8);
}

/* More Guides Dropdown Styles */
.more-guides-container {
    position: relative;
    display: inline-block;
    width: fit-content;
    padding-bottom: 20px; /* Bridge the gap between button and dropdown */
    margin-bottom: -20px; /* Offset padding to maintain layout */
    pointer-events: auto; /* Explicitly ensure hover works */
}

.more-guides-btn {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 12px 24px;
    min-width: 220px;
    width: 100%;
    display: block;
    font-size: 16px;
    font-family: var(--font-accent);
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 73, 10, 0.2);
}

.more-guides-container:hover .more-guides-btn {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 73, 10, 0.25);
}

.more-guides-dropdown {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--accent-light);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 101;
    border-radius: 15px;
    top: 100%;
    margin-top: -10px;
    overflow: hidden;
    border: none;
    transform-origin: top center; /* Set origin for scaling effect */
}

.more-guides-container:hover .more-guides-dropdown {
    display: block;
    animation: expandDown 1.3s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother, more gradual curve */
}

.more-guides-dropdown a {
    color: var(--text-light);
    padding: 12px 20px;
    text-decoration: none;
    display: block !important; /* Force block display as in original styles */
    font-family: var(--font-text);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0 solid transparent;
}

.more-guides-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Restore glass hover background */
    color: var(--text-light);
    padding-left: 28px;
    border-left: 6px solid var(--text-light);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.more-guides-dropdown a:last-child {
    border-bottom: none;
}

@keyframes expandDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@media (max-width: 600px) {
    .top-nav-overlay {
        top: 12px;
        left: 12px;
        right: 12px;
        padding: 8px 12px;
        border-radius: 16px;
    }
    .logo-container {
        width: auto;
        flex: 0 0 auto;
    }
    #logo {
        width: 132px;
        max-width: 132px;
        translate: 0 2px;
    }
    .more-guides-btn {
        min-width: 0;
        width: auto;
        padding: 9px 16px;
        font-size: 13px;
        border-radius: 22px;
    }
    .more-guides-container {
        padding-bottom: 14px;
        margin-bottom: -14px;
    }
}
