/* 
Updated SpiceBazaar Theme CSS - WeighWisely Color Scheme
Replace your existing style.css with this updated version
*/

/*
Theme Name: WeighWisely
Theme URI: https://WeighWisely.com
Description: A warm, inviting WordPress theme designed for WeighWisely.com. Features an earthy spice market aesthetic with excellent support for calculators and page builders.
Author: SpiceBazaar Theme
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: WeighWisely_theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar, flexible-header, accessibility-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* CSS Reset & Base Styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Lato', 'Noto Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', 'Playfair Display', 'Montserrat', serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: #1a1f2e;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: #ff9500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4db6ac;
    text-decoration: underline;
}

/* Layout Structure */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER - Updated to match WeighWisely logo */
.site-header {
    background: linear-gradient(135deg, #1a1f2e 0%, #2c3e50 100%);
    padding: 1.5rem 0;
    border-bottom: 3px solid #ff9500;
    box-shadow: 0 2px 10px rgba(26, 31, 46, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    margin: 0;
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #ff9500;
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.site-description {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #4db6ac;
    font-style: italic;
    font-weight: 500;
}

/* Navigation - Updated for dark header */
.main-navigation {
    margin-top: 0.5rem;
}

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

.main-navigation li {
    margin-right: 2rem;
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: #1a1f2e;
    background-color: #ff9500;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 149, 0, 0.3);
}

/* Mobile Menu Toggle - Updated for dark theme */
.menu-toggle {
    display: none;
    background: #ff9500;
    color: #1a1f2e;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #4db6ac;
    color: #ffffff;
    transform: scale(1.05);
}

/* Main Content Area */
.site-main {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    min-height: 500px;
}

.content-area {
    flex: 0 0 70%;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26, 31, 46, 0.1);
    border: 1px solid #e9ecef;
}

.sidebar {
    flex: 0 0 28%;
}

/* Full Width Template */
.full-width .content-area {
    flex: 1;
}

.full-width .sidebar {
    display: none;
}

/* Post Styles */
.post, .page {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.post:last-child, .page:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
    color: #1a1f2e;
}

.entry-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: #4db6ac;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-footer {
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* WordPress Generated Classes */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    padding: 0.5rem;
}

/* Lists */
ul, ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #ff9500 0%, #ffa726 100%);
    font-weight: 600;
    color: #ffffff;
}

/* Blockquotes */
blockquote {
    margin: 0 0 1.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #ff9500;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Sidebar Widgets */
.widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26, 31, 46, 0.1);
    border: 1px solid #e9ecef;
}

.widget-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ff9500;
    color: #1a1f2e;
    font-size: 1.3rem;
    font-weight: 700;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    background-color: #f8f9fa;
    padding-left: 1rem;
}

/* Calculator Specific Styles */
.calculator-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(26, 31, 46, 0.15);
    margin-bottom: 2rem;
    border: 2px solid #ff9500;
}

.calculator-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.calculator-input:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
    transform: translateY(-2px);
}

.calculator-button {
    background: linear-gradient(135deg, #ff9500 0%, #ffa726 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem 0.5rem 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculator-button:hover {
    background: linear-gradient(135deg, #4db6ac 0%, #26a69a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(77, 182, 172, 0.4);
}

.calculator-result {
    background: linear-gradient(135deg, #ff9500 0%, #ffa726 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(135deg, #ff9500 0%, #ffa726 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(135deg, #4db6ac 0%, #26a69a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(77, 182, 172, 0.3);
}

/* FOOTER - Updated to match WeighWisely logo */
.site-footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
    border-top: 3px solid #ff9500;
    box-shadow: 0 -4px 15px rgba(26, 31, 46, 0.2);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.footer-widget h3 {
    color: #ff9500;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #4db6ac;
    text-decoration: none;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 149, 0, 0.3);
    font-size: 0.95rem;
    color: #adb5bd;
}

.site-info a {
    color: #ff9500;
    font-weight: 600;
}

.site-info a:hover {
    color: #4db6ac;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff9500;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1f2e;
}

.comment-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-numbers {
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    color: #1a1f2e;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: linear-gradient(135deg, #ff9500 0%, #ffa726 100%);
    color: #ffffff;
    border-color: #ff9500;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 149, 0, 0.3);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    margin: 0;
}

.search-form button {
    margin: 0;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        background: rgba(26, 31, 46, 0.95);
        padding: 1rem;
        border-radius: 8px;
        backdrop-filter: blur(10px);
    }

    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 149, 0, 0.2);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        color: #ffffff;
        padding: 1rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .site-main {
        flex-direction: column;
        gap: 1.5rem;
    }

    .content-area {
        flex: none;
        padding: 2rem;
    }

    .sidebar {
        flex: none;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .calculator-container {
        padding: 2rem;
    }

    .calculator-button {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .site-container {
        padding: 0 10px;
    }

    .content-area {
        padding: 1.5rem;
    }

    .widget {
        padding: 1.5rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* 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: #ff9500;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #1a1f2e;
    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 {
    .sidebar,
    .site-header,
    .site-footer,
    .comments-area {
        display: none;
    }

    .content-area {
        flex: 1;
        box-shadow: none;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }
}
}