/*
Theme Name: Health Reformed - Child Theme
Description: Child theme for Astra - Health Reformed natural health blog
Author: Health Reformed
Template: astra
Version: 1.0.0
*/

/* ===================================
   GLOBAL STYLES & VARIABLES
   =================================== */

/* ===================================
   STRUCTURAL & COMPONENT STYLES ONLY
   Inherits Astra theme's global styles
   =================================== */

/* Section layout helpers */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Grid layout for card items */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Card / Featured remedy box */
.card,
.featured-remedy {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

/* Optional call-to-action or alert box style */
.alert-box {
    border-left: 4px solid #4caf50;
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Link interactions (inherits Astra link color) */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    text-decoration: underline;
}

/* Sticky header refinement (optional if not already set by Astra) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


.site-branding {
    padding: 1rem 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-description {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

.main-navigation {
    background: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.main-navigation a:hover {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* ===================================
   CONTENT AREA
   =================================== */

.content-area {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================================
   POST TYPES STYLES
   =================================== */

/* Herbs & Foods */
.post-type-herbs_foods .entry-content {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.herb-properties {
    background: #f0f8f0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.herb-properties h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.biblical-reference {
    background: #fff3cd;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid var(--warning-color);
}

/* Lifestyle Diseases */
.post-type-lifestyle_diseases .entry-content {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.disease-symptoms {
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--danger-color);
}

.natural-treatments {
    background: #f0f8f0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--success-color);
}

/* Food Substitutes */
.post-type-food_substitutes .entry-content {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.substitute-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.substitute-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.substitute-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

/* Testimonials */
.post-type-testimonials .entry-content {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--light-text);
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    margin-top: 1rem;
}

/* ===================================
   ARCHIVE PAGES
   =================================== */

.archive-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-card-excerpt {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.post-card-meta {
    font-size: 0.9rem;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* ===================================
   MEDICAL DISCLAIMER
   =================================== */

.medical-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    position: relative;
}

.medical-disclaimer::before {
    content: "⚠️";
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
}

.medical-disclaimer strong {
    color: var(--warning-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* ===================================
   SHORTCODES
   =================================== */

.related-herbs {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.related-herbs h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-herbs ul {
    list-style: none;
    padding: 0;
}

.related-herbs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-herbs li:last-child {
    border-bottom: none;
}

.testimonial-shortcode {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
}

.testimonial-shortcode blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.testimonial-shortcode cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===================================
   FORMS & INTERACTIVE ELEMENTS
   =================================== */

.search-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--secondary-color);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .substitute-options {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input[type="search"] {
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
    }
    
    .search-form button {
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .post-card-content {
        padding: 1rem;
    }
    
    .medical-disclaimer {
        padding: 1rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }

.border-radius { border-radius: var(--border-radius); }
.box-shadow { box-shadow: var(--box-shadow); }

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .site-header,
    .main-navigation,
    .site-footer,
    .medical-disclaimer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .post-card {
        break-inside: avoid;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --text-color: #000000;
        --background-white: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 