/**
 * ShamLock Content Pages Styling
 * For: About, FAQ, Glossary, Betting Tips, How It Works, Contact
 * Applied to pages using WordPress block editor (not Elementor)
 */

/* Content container - constrain width and center */
.page-template-default .entry-content,
.page-template-default .post-content,
.page-template-default article .content,
body.page .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    line-height: 1.7;
    color: #374151;
}

/* Page title styling */
.page-template-default .entry-title,
.page-template-default h1.wp-block-heading,
body.page .entry-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--sham-green, #16a34a);
    padding-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section headings (H2) */
.page-template-default .entry-content h2,
body.page .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Subsection headings (H3) */
.page-template-default .entry-content h3,
body.page .entry-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

/* H4 for FAQ questions or sub-subsections */
.page-template-default .entry-content h4,
body.page .entry-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.page-template-default .entry-content p,
body.page .entry-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
}

/* Lists */
.page-template-default .entry-content ul,
.page-template-default .entry-content ol,
body.page .entry-content ul,
body.page .entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.page-template-default .entry-content li,
body.page .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Bold text - use brand green for emphasis */
.page-template-default .entry-content strong,
body.page .entry-content strong {
    font-weight: 600;
    color: #1f2937;
}

/* Links */
.page-template-default .entry-content a,
body.page .entry-content a {
    color: var(--sham-green, #16a34a);
    text-decoration: none;
    font-weight: 500;
}

.page-template-default .entry-content a:hover,
body.page .entry-content a:hover {
    text-decoration: underline;
    color: var(--sham-green-hover, #15803d);
}

/* Horizontal rules (section dividers) */
.page-template-default .entry-content hr,
body.page .entry-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* Blockquotes - for callouts/important notes */
.page-template-default .entry-content blockquote,
body.page .entry-content blockquote {
    border-left: 4px solid var(--sham-green, #16a34a);
    background: #f0fdf4;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: normal;
    border-radius: 0 8px 8px 0;
}

.page-template-default .entry-content blockquote p,
body.page .entry-content blockquote p {
    margin-bottom: 0;
}

/* Code/term highlighting */
.page-template-default .entry-content code,
body.page .entry-content code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #1f2937;
}

/* Definition list styling (for glossary) */
.page-template-default .entry-content dl,
body.page .entry-content dl {
    margin-bottom: 1.5rem;
}

.page-template-default .entry-content dt,
body.page .entry-content dt {
    font-weight: 600;
    color: #1f2937;
    margin-top: 1rem;
}

.page-template-default .entry-content dd,
body.page .entry-content dd {
    margin-left: 0;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
    margin-top: 0.25rem;
    color: #4b5563;
}

/* FAQ-specific styling - Q&A format */
.page-template-default .entry-content h3 + p,
body.page .entry-content h3 + p {
    /* Answer paragraph after question heading */
    padding-left: 0;
}

/* Table styling (if used in glossary) */
.page-template-default .entry-content table,
body.page .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-template-default .entry-content th,
.page-template-default .entry-content td,
body.page .entry-content th,
body.page .entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.page-template-default .entry-content th,
body.page .entry-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Disclaimer/legal text styling */
.page-template-default .entry-content em,
body.page .entry-content em {
    font-style: italic;
    color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-template-default .entry-content,
    body.page .entry-content {
        padding: 1.5rem 1rem 3rem;
    }

    .page-template-default .entry-title,
    .page-template-default h1.wp-block-heading,
    body.page .entry-title {
        font-size: 1.75rem;
    }

    .page-template-default .entry-content h2,
    body.page .entry-content h2 {
        font-size: 1.25rem;
    }

    .page-template-default .entry-content h3,
    body.page .entry-content h3 {
        font-size: 1.0625rem;
    }
}

/* Page-specific background */
body.page-template-default {
    background: #f8f9fa;
}

body.page-template-default article {
    background: #ffffff;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
