/* Light Theme Styles for Single Posts */

/* Post Content Base */
.post-content {
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.4rem;
}

.post-content strong {
    color: #111827;
    font-weight: 600;
}

.post-content a {
    color: #4D7CFE;
    text-decoration: none;
}

.post-content a:hover {
    color: #00ffa2;
    text-decoration: underline;
}

/* Headings */
.post-content h2,
.post-content h2.wp-block-heading, #sidebar-widgets h2 {
    background: linear-gradient(to right, #000000, #1e3a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 3.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700 !important;
    font-size: 3rem;
    font-family: 'Bebas Neue', 'Gotham', 'Inter', system-ui, -apple-system, sans-serif !important;
    letter-spacing: 0.02em;
    line-height: 1 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.8rem;
}

.post-content h3 {
    color: #111827;
    margin: 1.8rem 0 .8rem;
    margin-bottom: 1.8rem;
    font-weight: 500;
    font-size: 1.5rem;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    line-height: 1.3;
}

/* Sidebar basic lists */
#sidebar-widgets ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem 0;
}

#sidebar-widgets ul li {
    position: relative;
    padding-left: 1.75rem;
    margin: 2px;
    color: #1f2937;
    line-height: 1.5;
}

#sidebar-widgets ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, #10b981, #059669);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

#sidebar-widgets ol {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0 0 1rem 0;
}

#sidebar-widgets ol li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Sidebar button-like links */
#sidebar-widgets a.btn-link {
    display: inline-block;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    color: #ffffff;
    padding: 0.6rem 0.9rem;
    border-radius: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(29, 78, 216, 0.35);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    width: 80%;
}

#sidebar-widgets a.btn-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.28);
    filter: brightness(1.05);
}

#sidebar-widgets a.btn-link:active {
    transform: translateY(0);
}

/* Nearly full-width variant with side spacing */
#sidebar-widgets a.btn-link.btn-wide {
    display: block;
    width: calc(100% - 2rem);
    margin: 0.75rem 1rem 0;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(to right, #3b82f6, #2563eb);
}

/* Keep lists visually left-aligned when wrapped in <center> */
#sidebar-widgets center ul {
    display: inline-block;
    text-align: left;
}

/* Lists */
.post-content ul,
.post-content ol {
    color: #1f2937;
    margin-bottom: 1.4rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Blockquotes and Code */
.post-content blockquote {
    border-left: 4px solid #4D7CFE;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #4b5563;
    font-style: italic;
}

.post-content code {
    background: #f3f4f6;
    color: #10b981;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
}

/* Post Content Typography Override */
.post-content p {
    font-family: arial !important;
    font-size: 19px !important;
    margin-bottom: 1.7rem !important;
}

.post-content p strong {
    color: red;
    font-weight: normal;
}

/* Post Content Images */
.post-content img, #sidebar-widgets img, .sidebar-photo {
    border: 4px solid #fff;
    -webkit-box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.7rem !important;
}

.post-content img:hover {
    transform: translateY(-2px);
    -webkit-box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.3);
}

/* Force table images to be responsive - override Optimole's size detection */
.post-content table img,
.post-content td img,
.post-content tbody img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
}

/* Emoji images - keep inline */
.post-content img.emoji,
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    height: 1em !important;
    width: 1em !important;
}

/* WordPress Image Alignment */
.post-content .alignleft,
.post-content img.alignleft,
.post-content .wp-block-image.alignleft,
.post-content figure.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.post-content .alignright,
.post-content img.alignright,
.post-content .wp-block-image.alignright,
.post-content figure.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.post-content .aligncenter,
.post-content img.aligncenter,
.post-content .wp-block-image.aligncenter,
.post-content figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content figure.alignleft img,
.post-content figure.alignright img {
    margin-bottom: 0 !important;
}

/* Mobile: Make aligned images full-width and centered */
@media (max-width: 639px) {
    .post-content .alignleft,
    .post-content img.alignleft,
    .post-content .wp-block-image.alignleft,
    .post-content figure.alignleft,
    .post-content .alignright,
    .post-content img.alignright,
    .post-content .wp-block-image.alignright,
    .post-content figure.alignright {
        float: none !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .post-content .alignleft img,
    .post-content .alignright img,
    .post-content figure.alignleft img,
    .post-content figure.alignright img {
        width: 100% !important;
        height: auto !important;
    }
}

/* Clear Float Utility - Can be added to any element */
.clear-float,
.post-content .clear-float {
    clear: both;
    display: block;
    padding-top: 2rem;
}

/* Quote Wrapper */
figure.achv-quote-wrapper p {
    margin-bottom: 0px !important;
}

/* Excerpt Content Styling */
.excerpt-content span[style*="color:green"] {
    color: #16a34a !important;
}

.excerpt-content strong,
.excerpt-content b {
    font-weight: 600;
}

.excerpt-content em,
.excerpt-content i {
    font-style: italic;
}

.excerpt-content a {
    color: #2563eb;
    text-decoration: underline;
}

.excerpt-content a:hover {
    color: #1d4ed8;
}

/* Page Content Container */
.page-content {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Header Adjustments */
main,
.main-content,
.page-main,
.home-page-main,
.affiliate-page-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Prose Styling */
.prose {
    color: var(--text-primary);
    max-width: none;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.prose-gray {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .max-w-4xl {
        padding: 0.5rem 0.75rem;
    }
    
    .page-content {
        padding: 0.875rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 0.375rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 0.75rem 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #fb923c;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 6px;
    border: 2px solid #fb923c;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #60a5fa #fb923c;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #60a5fa #fb923c;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #fb923c;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #60a5fa;
}

/* Leading-tight override */
.leading-tight {
    line-height: 1 !important;
}

/* Feature Card Images */
.feature-card img {
    border: none;
}

/* Feature Card Paragraphs */
.feature-card p {
    margin-bottom: 0px !important;
}

/* Testimonial Author */
p.testimonial-author {
    margin-bottom: 0px !important;
}

/* Testimonial Card Headings */
.testimonial-card h3 {
    margin-bottom: 0px;
    margin-top: 0px;
    font-family: 'Outfit', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 1.125rem !important;
}

/* Testimonial Card Paragraphs */
.testimonial-card p {
    margin-bottom: 0px !important;
    font-size: 18px !important;
}

/* Testimonial Card Stars */
.testimonial-card svg {
    width: 1rem !important;
    height: 1rem !important;
}

/* URGENT: Hide Subscribe Button and Show Advertorial */
header a.ml-auto[href="#"] {
    display: none !important;
    visibility: hidden !important;
}

/* Add Advertorial text in header - REMOVED: Now handled in partials/header.php */

