/*
 Theme Name:   Freekick666
 Theme URI:    https://www.freekick666.com
 Description:  Child theme for GeneratePress - Freekick666 football site
 Author:       Freekick666
 Template:     generatepress
 Version:      1.0.2
 Text Domain:  freekick666
*/

/* ========================================
   Hide GeneratePress default header/nav/footer
   ======================================== */
.site-header,
.main-navigation,
.site-footer {
    display: none !important;
}

/* ========================================
   Homepage widgets centering
   ======================================== */
/* Homepage text — force light colors on dark background */
body.home .entry-content,
body.home .entry-title,
body.home h1, body.home h2, body.home h3,
body.home p, body.home span {
    color: #e6f1ff;
}
body.home a {
    color: #c8cdd8;
}
body.home a:hover {
    color: #64ffda;
}

/* ── Mobile: overall page fixes ── */
@media (max-width: 768px) {
    /* Content area full width on mobile */
    body .content-area,
    body .site-content .content-area,
    body.right-sidebar .content-area,
    #primary {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Posts page: tighter padding */
    .inside-article {
        padding: 12px 0 !important;
    }

    /* Post title smaller on mobile */
    .entry-header .entry-title,
    h1.entry-title {
        font-size: 22px !important;
    }

    /* Recommended posts grid */
    .fk-recommended__grid {
        grid-template-columns: 1fr !important;
    }
    .fk-recommended__card {
        flex-direction: row !important;
    }
    .fk-recommended__thumb {
        width: 100px !important;
        aspect-ratio: 1 !important;
        flex-shrink: 0 !important;
    }

    /* Homepage Elementor content: prevent long text/buttons from forcing overflow */
    body.home .elementor-62,
    body.home .elementor-62 .e-con,
    body.home .elementor-62 .e-con-inner,
    body.home .elementor-62 .elementor-widget,
    body.home .elementor-62 .elementor-widget-container {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.home .elementor-62 img {
        max-width: 100% !important;
        height: auto !important;
    }

    body.home .elementor-62 .elementor-button-wrapper,
    body.home .elementor-62 .elementor-button {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.home .elementor-62 .elementor-button {
        white-space: normal !important;
        text-align: center !important;
    }

    body.home .elementor-62 .elementor-button .elementor-button-text,
    body.home .elementor-62 .elementor-widget-text-editor,
    body.home .elementor-62 .elementor-heading-title,
    body.home .elementor-62 .widget-image-caption {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.home .elementor-62 .wp-caption,
    body.home .elementor-62 figure {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    body .content-area,
    #primary {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .entry-header .entry-title,
    h1.entry-title {
        font-size: 18px !important;
    }

    body.home .elementor-62 .elementor-button {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Bottom padding for mobile nav bar */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px !important;
    }
}

/* ========================================
   Global overrides
   ======================================== */
body {
    background-color: #161625;
    font-family: 'Noto Sans Thai', sans-serif;
    color: #c8cdd8;
}

/* Force dark backgrounds on GP containers — posts and non-home pages only */
body.single .separate-containers .inside-article,
body.single .separate-containers .comments-area,
body.single .separate-containers .page-header,
body.single .separate-containers .paging-navigation,
body.page:not(.home) .separate-containers .inside-article,
body.page:not(.home) .separate-containers .comments-area {
    background-color: transparent !important;
}

/* Force dark backgrounds on GP containers */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .container {
    background-color: transparent !important;
}

/* Form inputs — posts/pages only, not homepage */
body.single input[type="text"],
body.single input[type="email"],
body.single input[type="url"],
body.single input[type="password"],
body.single input[type="search"],
body.single textarea,
body.single select,
body.page:not(.home) input[type="text"],
body.page:not(.home) input[type="email"],
body.page:not(.home) textarea,
body.page:not(.home) select {
    background: #1a1a2e !important;
    border-color: rgba(255,255,255,.1) !important;
    color: #e6f1ff !important;
    border-radius: 6px;
}
body.single input:focus,
body.single textarea:focus,
body.page:not(.home) input:focus,
body.page:not(.home) textarea:focus {
    border-color: #64ffda !important;
    outline: none;
}

/* Buttons — posts/pages only */
body.single .comment-form input[type="submit"],
body.page:not(.home) .comment-form input[type="submit"] {
    background-color: #64ffda !important;
    color: #0e0e1a !important;
    border: none;
    border-radius: 6px;
    font-weight: 700;
}

/* ========================================
   Single Post — Dark Theme
   ======================================== */

/* Content area background */
.site-content,
.content-area,
.site-main {
    background: transparent;
}

/* Entry content */
.entry-content,
.page-content {
    color: #c8cdd8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #e6f1ff;
}

.entry-content a {
    color: #64ffda;
}
.entry-content a:hover {
    color: #4cd6b6;
}

.entry-content blockquote {
    border-left: 3px solid #64ffda;
    background: rgba(100,255,218,.04);
    color: #a8b2c8;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.entry-content pre,
.entry-content code {
    background: #0e0e1a;
    color: #64ffda;
    border: 1px solid rgba(255,255,255,.06);
}

.entry-content table {
    border-color: rgba(255,255,255,.08);
}
.entry-content th {
    background: #16213e;
    color: #e6f1ff;
    border-color: rgba(255,255,255,.08);
}
.entry-content td {
    border-color: rgba(255,255,255,.06);
    color: #c8cdd8;
}

.entry-content img {
    border-radius: 8px;
}

.entry-content hr {
    border-color: rgba(255,255,255,.08);
}

.entry-content ul li::marker,
.entry-content ol li::marker {
    color: #64ffda;
}

/* Post header
 *
 * The archive/listing views wrap the title in <h2 class="entry-title"><a>...</a></h2>.
 * GeneratePress's parent theme colours that <a> using --contrast (#222222), which
 * is invisible against the dark background. We override both the heading AND the
 * inner link so category pages, search results, and related-posts grids are readable.
 */
.entry-header .entry-title,
.page-header .page-title,
h1.entry-title,
.entry-title,
.entry-title a,
.entry-title a:visited {
    color: #e6f1ff !important;
}
.entry-title a:hover,
.entry-title a:focus {
    color: #64ffda !important;
}

/* Post meta (date, author, category) */
.entry-meta,
.entry-meta a,
.post-meta,
.byline,
.posted-on,
.cat-links,
.tags-links {
    color: #8892b0 !important;
}
.entry-meta a:hover,
.cat-links a:hover,
.tags-links a:hover {
    color: #64ffda !important;
}

/* Category/tag badges */
.cat-links a,
.tags-links a {
    background: rgba(100,255,218,.08);
    color: #64ffda !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}

/* Post navigation (prev/next) */
.post-navigation,
.posts-navigation {
    border-color: rgba(255,255,255,.08);
}
.post-navigation a,
.posts-navigation a {
    color: #e6f1ff;
}
.post-navigation a:hover,
.posts-navigation a:hover {
    color: #64ffda;
}
.nav-subtitle {
    color: #8892b0;
}

/* Comments */
.comments-area {
    border-top: 1px solid rgba(255,255,255,.08);
}
.comments-title,
.comment-reply-title {
    color: #e6f1ff;
}
.comment-body {
    border: 1px solid rgba(255,255,255,.06);
    background: #12121f;
    border-radius: 8px;
    padding: 16px;
}
.comment-author .fn,
.comment-author .fn a {
    color: #e6f1ff;
}
.comment-metadata a {
    color: #8892b0;
}
.comment-content {
    color: #c8cdd8;
}
.comment-form label {
    color: #c8cdd8;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.1);
    color: #e6f1ff;
    border-radius: 6px;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #64ffda;
    outline: none;
}
.comment-form .submit {
    background: #64ffda;
    color: #0e0e1a;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    padding: 10px 24px;
    cursor: pointer;
}
.comment-form .submit:hover {
    background: #4cd6b6;
}

/* Sidebar */
.widget-area .widget {
    color: #c8cdd8;
}
.widget-area .widget-title {
    color: #e6f1ff;
}
.widget-area a {
    color: #c8cdd8;
}
.widget-area a:hover {
    color: #64ffda;
}

/* Pagination / archives / search results */
.page-numbers {
    color: #c8cdd8;
}
.page-numbers.current {
    background: #64ffda;
    color: #0e0e1a;
}
.page-numbers:hover {
    color: #64ffda;
}

/* GeneratePress inside article */
.inside-article {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Featured image */
.post-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Separator between posts on archive pages */
.generate-columns .inside-article,
.blog .inside-article,
.archive .inside-article {
    background: #12121f !important;
    border: 1px solid rgba(255,255,255,.04) !important;
    border-radius: 10px !important;
    padding: 16px !important;
}

/* Archive page headings */
.archive .page-title,
.search .page-title {
    color: #e6f1ff;
}

/* Override any white backgrounds GeneratePress might add */
.site-content .content-area,
.site-content .widget-area,
#primary,
#secondary {
    background: transparent;
}

/* ── Match header/footer width: 1200px ── */
.grid-container,
.wp-block-group__inner-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Force content-area full-width centered — override GP sidebar layout */
body .content-area,
body .site-content .content-area,
body.right-sidebar .content-area,
body.left-sidebar .content-area,
body.both-sidebars .content-area,
#primary {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    padding-left: 20px;
    padding-right: 20px;
}

.inside-article {
    padding: 20px 0;
}

/* Hide sidebar everywhere — full-width centered */
#secondary,
.sidebar,
.is-right-sidebar,
.is-left-sidebar,
.widget-area {
    display: none !important;
    width: 0 !important;
}
