/* Master Top Navigation Bar Styles */
/* This file ensures unified top nav appearance across all pages */

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    top: env(safe-area-inset-top);
    left: 0;
    right: 0;
    background: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    gap: 12px;
}

.top-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-logo img {
    height: 50px;
    max-width: 220px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .top-nav {
        padding: 10px 14px;
        padding-top: calc(10px + env(safe-area-inset-top));
    }

    .top-logo img {
        height: 46px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 8px 10px;
        padding-top: calc(8px + env(safe-area-inset-top));
        gap: 6px;
    }

    .top-logo img {
        height: 38px;
        max-width: 150px;
    }
}

/* Buttons container on the right */
.top-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
}

.top-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #4a5568;
    white-space: nowrap;
}

/* Mobile button adjustments */
@media (max-width: 768px) {
    .top-buttons {
        gap: 5px;
    }

    .top-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .btn-host {
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .top-buttons {
        gap: 4px;
    }

    .top-btn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .btn-host {
        padding: 6px 10px;
        font-size: 11px;
        font-weight: 600;
    }
}

.top-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.btn-host {
    background: white;
    color: #2d3748;
    border: 1px solid #d1d5db;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.005em;
    padding: 10px 20px;
}

.btn-host:hover {
    background: #f7fafc;
}

/* Hide Become a Host icon on all devices */
.btn-host svg {
    display: none;
}

/* Smaller font for "Become a Host" on medium-small screens */
@media (max-width: 450px) and (min-width: 381px) {
    .btn-host {
        font-size: 11px;
        padding: 7px 12px;
    }
}

/* Change text to "Host!" on very small screens */
@media (max-width: 380px) {
    .btn-host span {
        font-size: 0;
    }

    .btn-host span::before {
        content: 'Host!';
        font-size: 11px;
        font-weight: 600;
    }
}

@media (max-width: 340px) {
    .btn-host span::before {
        font-size: 10px;
    }
}

/* Mobile: Hide Become a Host icon */
.btn-share {
    background: transparent;
    border: none;
    color: #4a5568;
    border-radius: 24px;
}

.btn-share:hover {
    background: #f7fafc;
    border: none;
}

/* Share icon styling */
.share-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.share-icon-ios,
.share-icon-android {
    display: none;
}

.btn-share:hover .share-icon {
    transform: translateY(-2px);
}

/* Desktop: Hide Share text, show icon only */
@media (min-width: 769px) {
    .btn-share .btn-text {
        display: none;
    }
}

/* Hamburger menu */
.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-btn {
    background: transparent;
    border: none;
    border-radius: 24px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #4a5568;
    min-width: 40px;
    flex-shrink: 0;
}

.hamburger-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .hamburger-btn {
        padding: 4px;
        min-width: 32px;
    }

    .hamburger-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hamburger-btn {
        padding: 3px;
        min-width: 28px;
    }

    .hamburger-btn svg {
        width: 18px;
        height: 18px;
    }
}

.hamburger-btn:hover {
    background: #f7fafc;
}

.hamburger-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px 0;
    min-width: 240px;
    display: none;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hamburger-dropdown.active {
    display: block;
}

.hamburger-option {
    display: block;
    width: 100%;
    padding: 10px 24px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    color: #1a202c;
    text-decoration: none;
    transition: background 0.15s ease;
    font-weight: 400;
    line-height: 1.5;
}

.hamburger-option:hover {
    background: #f7fafc;
}

.hamburger-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 16px;
}

.hamburger-section-title {
    padding: 12px 24px 4px;
    font-size: 11px;
    font-weight: 800;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hamburger-option.btn-style {
    margin: 8px 16px 12px;
    padding: 12px 20px;
    background: #5965F1;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    width: calc(100% - 32px);
}

.hamburger-option.btn-style:hover {
    background: #4854d4;
}

/* Mobile responsive - floating design with better spacing */
@media (max-width: 768px) {
    .top-logo {
        top: 54px;
        left: 10px;
        padding: 6px 10px;
    }

    .top-logo img {
        height: 64px;
    }

    .top-buttons {
        top: 54px;
        right: 10px;
        gap: 8px;
    }

    .top-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Hide button text, keep icons */
    .btn-text {
        display: none;
    }

    .hamburger-btn {
        padding: 10px 14px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Small phones - keep good touch size, prevent overlap */
@media (max-width: 480px) {
    .top-logo {
        top: 50px;
        left: 8px;
        padding: 4px 8px;
    }

    .top-logo img {
        height: 56px;
    }

    .top-buttons {
        top: 50px;
        right: 8px;
    }

    .top-btn {
        padding: 10px 12px;
        font-size: 16px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .hamburger-btn {
        padding: 10px 12px;
        font-size: 16px;
        min-width: 44px;
        min-height: 44px;
    }
}
