/*
Theme Name: Holy Gospels Theme
Theme URI: https://holygospels.org
Description: A clean, full-width WordPress theme with minimal blank header and footer. Perfect for custom content and full-screen applications.
Version: 1.0.0
Author: Ben Colminas
Author URI: https://holygospels.org
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fullwidth-blank
Tags: full-width, minimal, blank, custom, clean
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Full Width Container */
.full-width-container {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Header Styles (Minimal/Hidden) */
.site-header {
    width: 100%;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    position: relative;
    z-index: 1;
}

.site-header .screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Main Content Area */
.site-main {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.content-area {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Post/Page Content */
.hentry {
    width: 100%;
    margin: 0;
    padding: 20px;
    border: none;
    background: #ffffff;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    color: #222;
    margin-bottom: 10px;
}

.entry-content {
    width: 100%;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.125rem; }
.entry-content h5 { font-size: 1rem; }
.entry-content h6 { font-size: 0.875rem; }

/* Images & Media */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Video/thumbnail helpers */
.entry-content .video-thumb,
.entry-content .video-thumbnail,
.entry-content .hg-video-thumb,
.entry-content .hg-video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #f5f5f5 center/cover no-repeat;
}

.entry-content .video-thumb img,
.entry-content .video-thumbnail img,
.entry-content .hg-video-thumb img,
.entry-content .hg-video-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Generic responsive embed wrapper fallbacks */
.entry-content .responsive-embed { position: relative; width: 100%; }
.entry-content .responsive-embed::before { content: ""; display: block; padding-top: 56.25%; }
.entry-content .responsive-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

.entry-content figure {
    margin: 20px 0;
    text-align: center;
}

.entry-content figcaption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Footer Styles (Minimal/Hidden) */
.site-footer {
    width: 100%;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    position: relative;
    z-index: 1;
}

.site-footer .screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Navigation (if needed) */
.main-navigation {
    display: none;
}

.post-navigation,
.posts-navigation {
    width: 100%;
    padding: 20px;
    margin: 20px 0;
    background: #f8f9fa;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

/* Comments (minimal styling) */
.comments-area {
    width: 100%;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hentry {
        padding: 15px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hentry {
        padding: 10px;
    }
    
    .entry-title {
        font-size: 1.25rem;
    }
}

/* Utility Classes */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Full Width Blocks */
.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.alignwide {
    width: 100%;
    max-width: none;
}

/* Block Editor Styles */
.wp-block-group.alignfull {
    padding-left: 0;
    padding-right: 0;
}

.has-background {
    padding: 20px 30px;
}

/* ==========================================================================
   Give Donation Plugin Integration
   ========================================================================== */

/* Basic Give Form Integration */
.give-form-wrapper {
    width: 100%;
    max-width: 100%;
    background: transparent;
}

/* Give Form in Full Width Layout */
.full-width-layout .give-form {
    width: 100%;
    max-width: 100%;
}

/* Give Body Classes */
body.give-donation-form-page,
body.give-donor-dashboard-page,
body.give-forms-archive,
body.give-single-form,
body.give-success-page {
    overflow-x: hidden;
}

/* Give Form Container Adjustments */
.give-form-container .content-area,
.give-dashboard-container .content-area,
.give-forms-archive-container .content-area {
    padding: 2rem 1rem;
}

/* Ensure Give elements inherit theme typography */
.give-form,
.give-donor-dashboard-wrap,
.give-receipt-wrapper {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Give Form Responsiveness */
@media (max-width: 768px) {
    .give-form-container .content-area,
    .give-dashboard-container .content-area,
    .give-forms-archive-container .content-area {
        padding: 1rem 0.5rem;
    }
}

/* Loading States */
.give-loading {
    position: relative;
    pointer-events: none;
}

.give-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: give-spin 1s linear infinite;
}

@keyframes give-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation States */
.give-form input.give-valid {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.give-form input.give-invalid {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

/* Mobile Tabs for Donor Dashboard */
.give-mobile-tabs-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: none;
}

/* Print Styles for Give Receipts */
@media print {
    .give-receipt-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .give-form-actions,
    .site-header,
    .site-footer {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .give-form,
    .give-donor-dashboard-wrap {
        border: 2px solid;
    }
}