/* ===== SURGICAL TECH NAV COMPONENT - MOBILE FIRST ===== */

/* Mobile First - Base styles for small screens */
.surgical-nav {
    /* Full width on mobile, but contained on desktop */
    width: 100%;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    padding: 20px 15px;
    margin: 30px 0; /* Space between sections */
    position: relative;
    overflow: hidden;
    
    /* Ensure it doesn't inherit any weird margins from parent containers */
    box-sizing: border-box;
}

/* Subtle pattern overlay */
.surgical-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 15px
        );
    pointer-events: none;
}

/* Container that matches your main content width */
.surgical-nav-container {
    /* Mobile: full width with padding */
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.surgical-nav-title {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.surgical-nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surgical-nav-items li {
    margin: 0;
}

.surgical-nav-items a {
    display: inline-block;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.surgical-nav-items a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Active/Current page styling */
.surgical-nav-items a.current-page {
    background: white;
    color: #0891b2; /* Teal color for current page text */
    cursor: default;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.surgical-nav-items a.current-page:hover {
    transform: none;
    background: white;
}

.surgical-nav-items a.current-page::after {
    content: '✓';
    margin-left: 5px;
    font-size: 0.85rem;
    color: #10b981; /* Mint green checkmark */
}

/* Tablet - 768px and up */
@media (min-width: 768px) {
    .surgical-nav {
        padding: 25px 20px;
        margin: 35px 0;
    }
    
    .surgical-nav-container {
        max-width: 100%;
        padding: 0;
    }
    
    .surgical-nav-title {
        font-size: 1rem;
        margin-bottom: 18px;
        letter-spacing: 1px;
    }
    
    .surgical-nav-items {
        gap: 8px;
    }
    
    .surgical-nav-items a {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* Desktop - 1200px and up */
@media (min-width: 1200px) {
    .surgical-nav {
        padding: 30px 20px;
        margin: 40px 0;
    }
    
    /* Match your main content container width */
    .surgical-nav-container {
        max-width: 1200px;
        padding: 0 20px; /* Match your main-content padding */
    }
    
    .surgical-nav-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .surgical-nav-items {
        gap: 10px;
    }
    
    .surgical-nav-items a {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Special wrapper class for when it's between sections */
.section-break-nav {
    /* This wrapper ensures the nav takes full viewport width */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.section-break-nav .surgical-nav {
    margin: 40px 0;
}

/* For when it's inside your existing section containers */
.section-container .surgical-nav {
    /* Reset the full-width styling when inside a section */
    width: 100%;
    margin: 30px -20px; /* Negative margins to break out of parent padding */
}

@media (min-width: 1200px) {
    .section-container .surgical-nav {
        margin: 40px calc(-50vw + 50%);
        width: 100vw;
    }
}