/**
 * Main stylesheet for ToeFX theme
 */

/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #f0f8ff;
    --accent-color: #00a0e9;
    --text-color: #333333;
    --light-text-color: #666666;
    --border-color: #dddddd;
    --background-color: #ffffff;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --heading-font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font-family);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.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;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--accent-color);
    color: white;
}

.button-large {
    padding: 12px 24px;
    font-size: 1.1em;
}

.button-primary {
    background-color: var(--primary-color);
}

.button-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 1.8em;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
}

.site-description {
    margin: 0;
    color: var(--light-text-color);
}

/* Navigation */
.main-navigation {
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin-left: 20px;
}

.main-navigation a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

/* User Type Modal */
.user-type-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-type-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.user-type-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.user-type-button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.user-type-button:hover {
    background-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.product-info p {
    margin-bottom: 20px;
    color: var(--light-text-color);
}

/* Subscription Kit */
.subscription-kit {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.subscription-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.subscription-info h2 {
    margin-top: 0;
    font-size: 2em;
    margin-bottom: 20px;
}

.subscription-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.subscription-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

.subscription-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.subscription-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Shop CTA */
.shop-cta {
    padding: 60px 0;
    text-align: center;
    background-color: white;
}

.shop-cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.shop-cta p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: white;
    padding: 40px 0 0;
}

.footer-widgets {
    padding-bottom: 40px;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.site-info {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin-bottom: 10px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0 10px;
}

.footer-menu a {
    color: white;
    opacity: 0.8;
}

.footer-menu a:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
        color: var(--primary-color);
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation li {
        margin-left: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a {
        padding: 15px;
    }
    
    .subscription-content {
        grid-template-columns: 1fr;
    }
    
    .subscription-image {
        order: -1;
    }
    
    .footer-widget-area {
        grid-template-columns: 1fr;
    }
    
    .user-type-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* WooCommerce Styles */
.woocommerce-product-gallery {
    opacity: 1 !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce span.onsale {
    background-color: var(--primary-color);
}

.woocommerce ul.products li.product .price {
    color: var(--primary-color);
}

.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: var(--primary-color);
}

.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: var(--primary-color);
    color: white;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Diagnostic Quiz Styles */
.diagnostic-quiz {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.question {
    margin-bottom: 20px;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.answers label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.answers input {
    margin-right: 10px;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

#quiz-results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-high {
    border-left: 4px solid var(--error-color);
    padding-left: 15px;
}

.result-moderate {
    border-left: 4px solid var(--warning-color);
    padding-left: 15px;
}

.result-low {
    border-left: 4px solid var(--success-color);
    padding-left: 15px;
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}