/*
Theme Name: JunglerDev
Theme URI: https://junglerdev.com
Author: JunglerDev
Author URI: https://junglerdev.com
Description: A performance-first WordPress barebones theme built on Bootstrap 5.3.3. Designed as a clean, extensible baseline for any project — with built-in structured data, llms.txt generation, and developer-friendly integrations.
Version: 1.0.0
Tested up to: 6.8
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: junglerdev
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, bootstrap, developer, barebones
*/

/* ==========================================================================
   Theme Base Styles
   ========================================================================== */

/*
 * Bootstrap handles the majority of layout, typography, and component styles.
 * This file is reserved for theme-level overrides and custom font declarations.
 *
 * Structure:
 * 1. Custom Font Faces
 * 2. WordPress Core Overrides
 * 3. Accessibility
 * 4. Theme Utility Classes
 */

/* -- 1. Custom Font Faces -- */
/* @font-face declarations go here.
 * Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-weight
 * Place font files in the /fonts directory.
 */

/* -- 2. WordPress Core Overrides -- */

/* Ensure WordPress alignment classes work with Bootstrap */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.alignwide {
    max-width: 100vw;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.alignfull {
    max-width: 100vw;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* WordPress caption styling */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    padding-top: 0.5rem;
}

/* Ensure responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* WordPress gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    flex: 1 1 auto;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* -- 3. Accessibility -- */

/* Screen reader text — WordPress standard */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.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;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 999999;
    padding: 0.75rem 1.5rem;
    background: var(--bs-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* -- 4. Theme Utility Classes -- */

/* Sticky footer layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}
