/**
 * Michigan Diagnostics - Additional Styles
 * Main CSS for custom components and enhancements
 */

/* ========================================
   UTILITY CLASSES
   ======================================== */

.col-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* ========================================
   HERO SECTION ENHANCEMENTS
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Animated gradient background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #E8F4FD 0%, #FFFFFF 50%, #E8F4FD 100%);
    z-index: 1;
}

.hero-section * {
    position: relative;
    z-index: 2;
}

/* ========================================
   CATEGORY CARD IMPROVEMENTS
   ======================================== */

.category-card {
    display: block;
    text-decoration: none;
}

.category-card .category-icon {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-description {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-description {
    opacity: 1;
}

/* ========================================
   SEARCH ENHANCEMENTS
   ======================================== */

.search-bar-wrapper input[type="search"]:focus {
    outline: none;
    border-color: #4DB8E8;
    box-shadow: 0 0 0 3px rgba(77, 184, 232, 0.1);
}

/* Header search dropdown animation */
.header-search-dropdown {
    animation: slideDown 0.3s ease;
}

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

.header-search-dropdown.active {
    display: block !important;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #1A2E5A;
    font-weight: 600;
    font-size: 16px;
    min-height: 48px;
}

.woocommerce ul.products li.product img {
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Add to cart button styling */
.woocommerce ul.products li.product .button {
    width: 100%;
    text-align: center;
}

/* Product badges */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4DB8E8;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-badge.featured {
    background: #1A2E5A;
}

.product-badge.sale {
    background: #E74C3C;
}

/* ========================================
   TABS (for product pages)
   ======================================== */

.woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #E0E0E0;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li a:hover {
    color: #1A2E5A;
    border-bottom-color: #4DB8E8;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #1A2E5A;
    border-bottom-color: #1A2E5A;
    font-weight: 600;
}

.woocommerce-tabs .panel {
    padding: 30px 0;
}

/* ========================================
   FORMS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4DB8E8;
    box-shadow: 0 0 0 3px rgba(77, 184, 232, 0.1);
}

label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.menu-toggle {
    display: none;
    background: #1A2E5A;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation .primary-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
    }

    .main-navigation .primary-navigation.active {
        display: block;
    }

    .main-navigation ul li {
        display: block;
        margin: 0;
    }

    .main-navigation ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #E0E0E0;
    }
}

/* ========================================
   SEARCH TOGGLE
   ======================================== */

.search-toggle {
    background: transparent;
    border: none;
    color: #1A2E5A;
    cursor: pointer;
    font-size: 24px;
    padding: 5px 10px;
}

.search-toggle:hover {
    color: #4DB8E8;
}

.search-toggle .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 46, 90, 0.2);
    border-radius: 50%;
    border-top-color: #1A2E5A;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs-wrapper {
    font-size: 14px;
}

.breadcrumbs-wrapper a {
    color: #666;
}

.breadcrumbs-wrapper a:hover {
    color: #1A2E5A;
}

/* ========================================
   TOP BAR STYLES
   ======================================== */

.top-bar-menu {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-bar-menu li {
    margin: 0;
}

.top-bar-menu a {
    font-size: 13px;
}

.dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .top-bar,
    .site-header,
    .main-navigation,
    .search-bar-wrapper,
    .site-footer,
    .button {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    h1 {
        font-size: 20pt;
    }

    h2 {
        font-size: 16pt;
    }
}
