/**
 * Gutenberg Blocks CSS
 * Styles for default WordPress Gutenberg blocks
 * Fonts: Poppins (matches theme design)
 * Accent Color: #FABB00 (yellow) or theme colors
 * 
 * IMPORTANT: All styles are scoped to post content areas only
 * to prevent affecting other theme components (footer, header, etc.)
 */

/* ============================================
   Editor Styles Wrapper
   ============================================ */
.editor-styles-wrapper {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    color: #12171D;
    line-height: 1.6;
}

/* ============================================
   Scope: All block styles only apply within post content
   ============================================ */
/* Block styles are scoped to these selectors:
   - .post-content (added in single.php)
   - .gutenberg-content (added in single.php)
   - .entry-content (WordPress default)
   - .editor-styles-wrapper (editor only)
*/

/* ============================================
   Typography - Headings
   Scoped to post content area only
   Based on custom-title-h1 through custom-title-h6 from tailwind.css
   ============================================ */
.post-content .wp-block-heading h1,
.post-content h1,
.gutenberg-content .wp-block-heading h1,
.gutenberg-content h1,
.entry-content .wp-block-heading h1,
.entry-content h1 {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    color: #12171D !important;
    margin-bottom: 1rem !important;
}

.post-content .wp-block-heading h2,
.post-content h2,
.gutenberg-content .wp-block-heading h2,
.gutenberg-content h2,
.entry-content .wp-block-heading h2,
.entry-content h2 {
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    color: #12171D !important;
    margin-bottom: 1rem !important;
}

.post-content .wp-block-heading h3,
.post-content h3,
.gutenberg-content .wp-block-heading h3,
.gutenberg-content h3,
.entry-content .wp-block-heading h3,
.entry-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 30px !important;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    color: #12171D !important;
    margin-bottom: 0.875rem !important;
}

.post-content .wp-block-heading h4,
.post-content h4,
.gutenberg-content .wp-block-heading h4,
.gutenberg-content h4,
.entry-content .wp-block-heading h4,
.entry-content h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 26px !important;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    color: #12171D !important;
    margin-bottom: 0.75rem !important;
}

.post-content .wp-block-heading h5,
.post-content h5,
.gutenberg-content .wp-block-heading h5,
.gutenberg-content h5,
.entry-content .wp-block-heading h5,
.entry-content h5 {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    color: #12171D !important;
    margin-bottom: 0.625rem !important;
}

.post-content .wp-block-heading h6,
.post-content h6,
.gutenberg-content .wp-block-heading h6,
.gutenberg-content h6,
.entry-content .wp-block-heading h6,
.entry-content h6 {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 28px !important;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    color: #12171D !important;
    margin-bottom: 0.5rem !important;
}

/* Responsive Typography - Headings (lg: 1024px, xl: 1280px) */
@media (min-width: 1024px) {
    .post-content .wp-block-heading h1,
    .post-content h1,
    .gutenberg-content .wp-block-heading h1,
    .gutenberg-content h1,
    .entry-content .wp-block-heading h1,
    .entry-content h1 {
        font-size: 40px !important;
        line-height: 48px !important;
    }
    
    .post-content .wp-block-heading h2,
    .post-content h2,
    .gutenberg-content .wp-block-heading h2,
    .gutenberg-content h2,
    .entry-content .wp-block-heading h2,
    .entry-content h2 {
        font-size: 32px !important;
        line-height: 34px !important;
    }
    
    .post-content .wp-block-heading h3,
    .post-content h3,
    .gutenberg-content .wp-block-heading h3,
    .gutenberg-content h3,
    .entry-content .wp-block-heading h3,
    .entry-content h3 {
        font-size: 25px !important;
        line-height: 34px !important;
    }
    
    .post-content .wp-block-heading h4,
    .post-content h4,
    .gutenberg-content .wp-block-heading h4,
    .gutenberg-content h4,
    .entry-content .wp-block-heading h4,
    .entry-content h4 {
        font-size: 22px !important;
        line-height: 28px !important;
    }
    
    .post-content .wp-block-heading h5,
    .post-content h5,
    .gutenberg-content .wp-block-heading h5,
    .gutenberg-content h5,
    .entry-content .wp-block-heading h5,
    .entry-content h5 {
        font-size: 20px !important;
        line-height: 26px !important;
    }
    
    .post-content .wp-block-heading h6,
    .post-content h6,
    .gutenberg-content .wp-block-heading h6,
    .gutenberg-content h6,
    .entry-content .wp-block-heading h6,
    .entry-content h6 {
        font-size: 20px !important;
    }
}

@media (min-width: 1280px) {
    .post-content .wp-block-heading h1,
    .post-content h1,
    .gutenberg-content .wp-block-heading h1,
    .gutenberg-content h1,
    .entry-content .wp-block-heading h1,
    .entry-content h1 {
        font-size: 50px !important;
        line-height: 58px !important;
    }
    
    .post-content .wp-block-heading h2,
    .post-content h2,
    .gutenberg-content .wp-block-heading h2,
    .gutenberg-content h2,
    .entry-content .wp-block-heading h2,
    .entry-content h2 {
        font-size: 42px !important;
        line-height: 56px !important;
    }
    
    .post-content .wp-block-heading h3,
    .post-content h3,
    .gutenberg-content .wp-block-heading h3,
    .gutenberg-content h3,
    .entry-content .wp-block-heading h3,
    .entry-content h3 {
        font-size: 30px !important;
        line-height: 38px !important;
    }
    
    .post-content .wp-block-heading h4,
    .post-content h4,
    .gutenberg-content .wp-block-heading h4,
    .gutenberg-content h4,
    .entry-content .wp-block-heading h4,
    .entry-content h4 {
        font-size: 25px !important;
        line-height: 32px !important;
    }
    
    .post-content .wp-block-heading h5,
    .post-content h5,
    .gutenberg-content .wp-block-heading h5,
    .gutenberg-content h5,
    .entry-content .wp-block-heading h5,
    .entry-content h5 {
        font-size: 22px !important;
        line-height: 28px !important;
    }
}

/* ============================================
   Typography - Paragraphs
   Scoped to post content area only
   Based on custom-description from tailwind.css
   ============================================ */
.post-content .wp-block-paragraph,
.post-content p,
.gutenberg-content .wp-block-paragraph,
.gutenberg-content p,
.entry-content .wp-block-paragraph,
.entry-content p {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    font-size: 14px !important;
    line-height: 26px !important;
    color: #12171D !important;
    font-weight: normal !important;
    margin-bottom: 1rem !important;
}

/* Responsive Typography - Paragraphs (lg: 1024px) */
@media (min-width: 1024px) {
    .post-content .wp-block-paragraph,
    .post-content p,
    .gutenberg-content .wp-block-paragraph,
    .gutenberg-content p,
    .entry-content .wp-block-paragraph,
    .entry-content p {
        font-size: 15px !important;
    }
}

/* Lead Paragraph Style */
.wp-block-paragraph.is-style-lead {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    font-weight: normal !important;
    margin-bottom: 1.5rem !important;
    color: #12171D !important;
}

/* ============================================
   Images
   ============================================ */
.wp-block-image {
    margin-bottom: 1.5rem !important;
}

.wp-block-image img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-block-image figcaption {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Rounded Image Style */
.wp-block-image.is-style-rounded img {
    border-radius: 0.75rem;
}

/* ============================================
   Lists
   Scoped to post content area only
   ============================================ */
.post-content .wp-block-list,
.post-content ul,
.post-content ol,
.gutenberg-content .wp-block-list,
.gutenberg-content ul,
.gutenberg-content ol,
.entry-content .wp-block-list,
.entry-content ul,
.entry-content ol {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    color: #12171D;
    margin-bottom: 1rem;
}

.post-content .wp-block-list li,
.post-content ul li,
.post-content ol li,
.gutenberg-content .wp-block-list li,
.gutenberg-content ul li,
.gutenberg-content ol li,
.entry-content .wp-block-list li,
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content .wp-block-list ul,
.post-content .wp-block-list ol,
.gutenberg-content .wp-block-list ul,
.gutenberg-content .wp-block-list ol,
.entry-content .wp-block-list ul,
.entry-content .wp-block-list ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

/* ============================================
   Blockquotes
   ============================================ */
.wp-block-quote {
    border-left: 4px solid #FABB00;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    color: #12171D;
}

.wp-block-quote p {
    margin-bottom: 0.5rem !important;
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 14px;
    font-style: normal;
    color: #666666;
}

/* Highlighted Quote Style */
.wp-block-quote.is-style-highlighted {
    background-color: #f8f9fa;
    border-left: 4px solid #FABB00;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================
   Code Blocks
   ============================================ */
.wp-block-code {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #12171D;
    overflow-x: auto;
}

.wp-block-code code {
    font-family: 'Courier New', monospace;
    background: transparent;
    padding: 0;
    border: none;
}

/* ============================================
   Tables
   ============================================ */
.wp-block-table {
    margin: 1.5rem 0;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.wp-block-table th,
.wp-block-table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.wp-block-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #12171D;
}

.wp-block-table td {
    color: #12171D;
}

/* ============================================
   Buttons
   ============================================ */
.wp-block-button {
    margin: 1.5rem 0;
}

.wp-block-button__link {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    background-color: #FABB00 !important;
    color: #12171D !important;
    border: none !important;
}

.wp-block-button__link:hover {
    background-color: #e6a800 !important;
    color: #12171D !important;
}

/* Outline Button Style */
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid #FABB00 !important;
    color: #FABB00 !important;
    background-color: transparent !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #FABB00 !important;
    color: #12171D !important;
}

/* ============================================
   Columns
   ============================================ */
.wp-block-columns {
    margin: 1.5rem 0;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    gap: 2rem;
}

.wp-block-column {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   Groups
   ============================================ */
.wp-block-group {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    margin: 1.5rem 0;
}

.wp-block-group__inner-container {
    padding: 1rem 0;
}

/* ============================================
   Cover Blocks
   ============================================ */
.wp-block-cover {
    border-radius: 10px;
    margin: 1.5rem 0;
    min-height: 300px;
}

.wp-block-cover__inner-container {
    padding: 2rem;
}

.wp-block-cover__background {
    border-radius: 10px;
}

/* ============================================
   Media & Text
   ============================================ */
.wp-block-media-text {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.wp-block-media-text__media img {
    border-radius: 10px;
}

.wp-block-media-text__content {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    padding: 1.5rem;
}

/* ============================================
   Galleries
   ============================================ */
.wp-block-gallery {
    margin: 1.5rem 0;
    gap: 1rem;
}

.wp-block-gallery .wp-block-image img {
    border-radius: 10px;
}

/* ============================================
   Separators
   ============================================ */
.wp-block-separator {
    border: none;
    border-top: 2px solid #FABB00;
    margin: 2rem 0;
    width: 100%;
}

.wp-block-separator.is-style-wide {
    width: 100%;
}

.wp-block-separator.is-style-dots {
    border: none;
    background: none;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: '\00b7 \00b7 \00b7';
    color: #FABB00;
    font-size: 20px;
    letter-spacing: 2em;
    padding-left: 2em;
}

/* ============================================
   YouTube Embeds
   ============================================ */
.wp-block-embed-youtube {
    margin: 1.5rem 0;
    width: 100%;
}

.wp-block-embed-youtube iframe {
    width: 100%;
    height: 485px;
    border-radius: 10px;
    border: none;
}

/* ============================================
   Other Embeds
   ============================================ */
.wp-block-embed {
    margin: 1.5rem 0;
}

.wp-block-embed iframe {
    border-radius: 10px;
}

/* ============================================
   Highlighted Heading Style
   ============================================ */
.wp-block-heading.is-style-highlight {
    background-color: #FABB00;
    color: #12171D;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .wp-block-embed-youtube iframe {
        height: 250px;
    }
    
    .wp-block-media-text {
        flex-direction: column !important;
    }
    
    .wp-block-media-text__media {
        width: 100% !important;
    }
    
    .wp-block-media-text__content {
        width: 100% !important;
    }
}

/* ============================================
   Preformatted Text
   ============================================ */
.wp-block-preformatted {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow-x: auto;
}

/* ============================================
   Pullquote
   ============================================ */
.wp-block-pullquote {
    border-left: 4px solid #FABB00;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    color: #12171D;
}

.wp-block-pullquote p {
    font-size: 1.25rem;
    line-height: 1.6;
}

.wp-block-pullquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 14px;
    font-style: normal;
    color: #666666;
}

/* ============================================
   Verse
   ============================================ */
.wp-block-verse {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* ============================================
   Spacer
   ============================================ */
.wp-block-spacer {
    margin: 0;
}

/* ============================================
   Latest Posts
   ============================================ */
.wp-block-latest-posts {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    margin: 1.5rem 0;
}

.wp-block-latest-posts li {
    margin-bottom: 1rem;
}

.wp-block-latest-posts a {
    color: #12171D;
    text-decoration: none;
    font-weight: 500;
}

.wp-block-latest-posts a:hover {
    color: #FABB00;
}

.wp-block-latest-posts__post-date {
    font-size: 14px;
    color: #666666;
    margin-top: 0.25rem;
}

/* ============================================
   Categories
   ============================================ */
.wp-block-categories {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    margin: 1.5rem 0;
}

.wp-block-categories li {
    margin-bottom: 0.5rem;
}

.wp-block-categories a {
    color: #12171D;
    text-decoration: none;
}

.wp-block-categories a:hover {
    color: #FABB00;
}

/* ============================================
   Archives
   ============================================ */
.wp-block-archives {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    margin: 1.5rem 0;
}

.wp-block-archives li {
    margin-bottom: 0.5rem;
}

.wp-block-archives a {
    color: #12171D;
    text-decoration: none;
}

.wp-block-archives a:hover {
    color: #FABB00;
}

/* ============================================
   Tags
   ============================================ */
.wp-block-tag-cloud {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    margin: 1.5rem 0;
}

.wp-block-tag-cloud a {
    color: #12171D;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin: 0.25rem;
    display: inline-block;
}

.wp-block-tag-cloud a:hover {
    background-color: #FABB00;
    color: #12171D;
}
