/* Includes Template Styles */

/* Header Navigation */
.header-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1f2937;
}

.logo img {
    height: 50px;
    margin-right: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    color: #9333ea;
    background-color: #f3f4f6;
}

.nav-link.active {
    color: #9333ea;
    background-color: #f3f4f6;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: #9333ea;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-item {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link:hover {
    color: #9333ea;
}

/* Product Header */
.product-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.product-header-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.product-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Product Navigation */
.product-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.product-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.product-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.product-nav-item:hover {
    background-color: #f9fafb;
    color: #9333ea;
}

.product-nav-item.active {
    background-color: #f3f4f6;
    color: #9333ea;
}

.product-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.product-nav-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    text-align: center;
    line-height: 1.2;
    padding-left: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .product-nav-container {
        gap: 1rem;
    }
    
    .product-nav-item {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .product-header h1 {
        font-size: 2.5rem;
    }
    
    .product-header p {
        font-size: 1.125rem;
    }
    
    .product-nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .product-nav-item {
        min-width: 80px;
        padding: 0.5rem;
    }
    
    .product-nav-icon {
        font-size: 1.5rem;
    }
    
    .product-nav-text {
        font-size: 0.75rem;
    }
    
    .product-nav-description {
        font-size: 0.625rem;
        padding-left: 6px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 0.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .product-header {
        padding: 2rem 0;
    }
    
    .product-header h1 {
        font-size: 2rem;
    }
    
    .product-nav-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .product-nav-item {
        flex-shrink: 0;
        min-width: 70px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu,
    .nav-link,
    .product-nav-item {
        transition: none;
    }
}

/* Focus States */
.nav-link:focus,
.product-nav-item:focus,
.mobile-nav-link:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-link:hover,
    .product-nav-item:hover {
        background-color: #000;
        color: #fff;
    }
    
    .dropdown-menu {
        border: 2px solid #000;
    }
}

/* Consistent Button Styles */
.submit-btn {
    background-color: #A855F7 !important; /* secondary color */
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

/* Remove underlines from button links */
a .submit-btn,
.submit-btn {
    text-decoration: none !important;
}

a:link .submit-btn,
a:visited .submit-btn,
a:hover .submit-btn,
a:active .submit-btn {
    text-decoration: none !important;
}

/* Remove underlines from link wrappers containing buttons */
a.submit-btn,
a.no-underline,
a.no-underline:link,
a.no-underline:visited,
a.no-underline:hover,
a.no-underline:active {
    text-decoration: none !important;
}

/* Ensure button inside links has no underline */
a button.submit-btn,
a button {
    text-decoration: none !important;
}

.submit-btn:hover {
    background-color: #8B5CF6 !important; /* primary color */
    transform: scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3) !important;
}

.submit-btn:focus {
    outline: 2px solid #8B5CF6 !important;
    outline-offset: 2px !important;
}

.submit-btn:active {
    transform: scale(0.98) !important;
}
