/*
Theme Name: Supplement Review Theme
Description: A clean, minimal WordPress theme designed for supplement reviews with affiliate marketing features
Author: Custom Theme
Version: 1.0
*/

/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #ff9500;
    --secondary-color: #2c3e50;
    --background-color: #fafafa;
    --container-width: 1200px;
    --heading-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--heading-font);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--background-color);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

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

/* Header Layouts */
.header-layout-logo_center .header-content {
    flex-direction: column;
    text-align: center;
}

.header-layout-logo_center .main-navigation {
    margin-top: 1rem;
}

.header-layout-logo_right .header-content {
    flex-direction: row-reverse;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

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

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--secondary-color);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--secondary-color);
    color: white;
}

.menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.menu-icon:before,
.menu-icon:after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-icon:before {
    top: -6px;
}

.menu-icon:after {
    bottom: -6px;
}

/* Menu toggle animation */
.menu-toggle.active .menu-icon {
    background: transparent;
}

.menu-toggle.active .menu-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

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

.primary-menu .menu-item {
    position: relative;
}

.primary-menu .menu-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: block;
}

.primary-menu .menu-item a:hover {
    color: var(--primary-color);
}

.primary-menu .menu-item.current-menu-item a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 1.5rem;
    font-size: 0.85rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.lang-separator {
    color: #ccc;
    font-weight: 300;
}

/* Header Right Container */
.header-right {
    display: flex;
    align-items: center;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Supplement Review Card */
.supplement-review {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.supplement-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.supplement-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.supplement-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.supplement-rating {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stars {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
}

.star.filled {
    color: #f39c12;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

.supplement-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.buy-button-container {
    text-align: center;
}

.buy-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #ff6b00);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.buy-button:before {
    content: '🛒';
    margin-right: 8px;
    font-size: 1rem;
}

.buy-button:hover {
    background: linear-gradient(135deg, #ff6b00, #e55a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
    color: white;
    text-decoration: none;
}

.buy-button:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Posts Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
}

.review-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.review-card-content {
    padding: 1.5rem;
}

.review-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.review-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.review-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-text {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .supplement-review {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .supplement-title {
        font-size: 1.5rem;
    }
    
    .supplement-description {
        font-size: 1rem;
    }
    
    .buy-button {
        width: 100%;
        padding: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .supplement-title {
        font-size: 1.3rem;
    }
    
    .supplement-review {
        padding: 1rem;
    }
    
    .stars {
        justify-content: center;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.supplement-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Accessibility */
.buy-button:focus,
.site-title:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

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

/* Pros and Cons */
.pros-cons-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.pros-section h3 {
    color: #27ae60;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cons-section h3 {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pros-list, .cons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-item, .con-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.pro-item:last-child, .con-item:last-child {
    border-bottom: none;
}

.pro-item {
    color: #27ae60;
}

.con-item {
    color: #e74c3c;
}

/* Buy Section */
.buy-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid #ff9500;
}

.supplement-price {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.affiliate-disclaimer {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

/* Related Supplements */
.related-supplements {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.related-supplements h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

/* Navigation */
.supplement-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    display: block;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

/* Supplement Meta */
.supplement-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.supplement-meta p {
    margin-bottom: 0.5rem;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        z-index: 999;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu .menu-item {
        border-bottom: 1px solid #eee;
    }
    
    .primary-menu .menu-item:last-child {
        border-bottom: none;
    }
    
    .primary-menu .menu-item a {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
    }
    
    .header-layout-logo_center .header-content,
    .header-layout-logo_right .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-layout-logo_center .main-navigation {
        margin-top: 0;
    }
    
    .site-logo img {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .language-switcher {
        margin-right: 1rem;
        font-size: 0.8rem;
    }
    
    .header-right {
        flex-shrink: 0;
    }
    
    .pros-cons-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .buy-section {
        padding: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .related-supplements h2 {
        font-size: 1.5rem;
    }
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Card Price */
.card-price {
    font-size: 1.1rem;
    color: #ff6b00;
    margin: 0.5rem 0;
    font-weight: 600;
}

/* Button Styles */
.button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results .page-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
}

/* Custom image styling for better layout */
.alignright {
}

@media (max-width: 768px) {
    .alignright {
    }
}

/* Ensure paragraph spacing */
.entry-content p {
    line-height: 1.6;
}

.entry-content p:last-child {
}

/* Ensure proper text flow around images */
.entry-content {
}
/* Custom image styling for better layout */
.alignright {
    float: right !important;
    margin: 10px 0 15px 25px !important;
    max-width: 300px !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    clear: right !important;
}

@media (max-width: 768px) {
    .alignright {
        float: none !important;
        margin: 10px auto !important;
        display: block !important;
        max-width: 100% !important;
    }
}

/* Ensure paragraph spacing */
.entry-content p {
    line-height: 1.6;
}

.entry-content p:last-child {
    margin-bottom: 0 !important;
}

/* Ensure proper text flow around images */
.entry-content {
    overflow: auto !important;
}

/* Enhanced content spacing for better readability */
.supplement-content p,
.supplement-description p,
.entry-content p {
}

.entry-content p:last-child {
}

/* Ensure proper spacing for headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
}

/* List spacing */
.entry-content ul,
.entry-content ol {
}

.entry-content li {
}

/* Force proper paragraph display */
.entry-content {
}
/* PARAGRAPH SPACING FIX */
.entry-content p,
.supplement-content p,
.supplement-description p {
    margin-bottom: 1.5em !important;
    line-height: 1.6 !important;
}

.entry-content p:last-child {
    margin-bottom: 0 !important;
}

/* HEADING SPACING */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin: 1.5em 0 1em 0 !important;
    line-height: 1.3 !important;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
    margin-top: 0 !important;
}

/* LIST SPACING */
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em !important;
    padding-left: 1.5em !important;
}

.entry-content li {
    margin-bottom: 0.5em !important;
}

/* Single Post Styles */
.single .entry-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.single .entry-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single .entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.single .entry-meta .byline {
    margin-left: 0.5rem;
}

.single .post-thumbnail {
    margin: 2rem 0;
    text-align: center;
}

.single .featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.single .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.single .entry-footer {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.single .tags-list {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .single .entry-title {
        font-size: 2rem;
    }
    
    .single .entry-content {
        font-size: 1rem;
    }
}
