/*
Theme Name:        UBUNPROGONAZLO
Theme URI:         https://ubuntuway.es/
Author:            Muhammad Ehsaan
Author URI:        https://muhammadehsaan.com/
Description:       UBUNPROGONAZLO is a premium, Elementor-ready WordPress theme crafted for wellness brands, yoga studios, retreats and holistic experiences. Lightweight, accessible, translation-ready and fully compatible with Elementor & Fluent Forms.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       ubunprogonazlo
Domain Path:       /languages
Tags:              elementor, one-column, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, portfolio, e-commerce
*/

/*--------------------------------------------------------------
# Notes
--------------------------------------------------------------*/
/*
 * This file is intentionally minimal because all visual styling is
 * delivered through dedicated stylesheets enqueued from /assets/css/
 * (see functions.php). WordPress only requires the header block above
 * for the theme to be recognised in the admin dashboard.
 *
 * If you need to add small overrides specific to the WP environment,
 * keep them at the bottom of THIS file — do not duplicate selectors
 * already present in /assets/css/style.css.
 */

/*--------------------------------------------------------------
# WordPress core required classes
--------------------------------------------------------------*/
.alignleft   { display: inline; float: left;  margin-right: 1.5em; }
.alignright  { display: inline; float: right; margin-left: 1.5em; }
.aligncenter { clear: both;  display: block; margin-left: auto; margin-right: auto; }
.alignnone   { margin: 0.5em 0; }

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption-text {
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    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;
    -webkit-clip-path: none;
    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;
}

/* Sticky posts */
.sticky { display: block; }

/* Gallery */
.gallery-caption { display: block; }

/* Bypostauthor */
.bypostauthor { display: block; }

/*--------------------------------------------------------------
# Booking sticky bar + modal (Smart Enhancement)
--------------------------------------------------------------*/
.ubun-sticky-booking {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    background: #1f2a24;
    color: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
    transition: transform 0.35s ease;
}
.ubun-sticky-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
}
.ubun-sticky-text {
    margin: 0;
    flex: 1 1 240px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.ubun-sticky-cta {
    white-space: nowrap;
}
.ubun-sticky-close {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
    opacity: .7;
}
.ubun-sticky-close:hover { opacity: 1; }

.ubun-modal[hidden] { display: none; }
.ubun-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ubun-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 19, 0.65);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.ubun-modal-dialog {
    position: relative;
    background: #fff;
    color: #1f2a24;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 14px;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}
.ubun-modal-dialog h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}
.ubun-modal-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, .05);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.ubun-modal-close:hover { background: rgba(0, 0, 0, .1); }

/* Push site content up so the sticky bar never overlaps the footer */
body.admin-bar .ubun-sticky-booking { bottom: 0; }
@media (max-width: 600px) {
    .ubun-sticky-text { font-size: .9rem; }
    .ubun-modal-dialog { padding: 1.5rem 1rem 1rem; }
}

/*--------------------------------------------------------------
# Scarcity / "Plazas restantes" badge (Milestone 4)
--------------------------------------------------------------*/
.ubun-spots-badge {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .2em .65em;
    margin-left: .5em;
    border-radius: 999px;
    background: #eef6f1;
    color: #2f6b4e;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}
.ubun-spots-badge::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: .75;
}
.ubun-spots-badge.ubun-spots-low {
    background: #fff1ec;
    color: #b8410e;
    animation: ubunSpotsPulse 2.2s ease-in-out infinite;
}
.ubun-spots-badge.ubun-spots-sold-out {
    background: #f3f4f4;
    color: #6b6b6b;
    text-decoration: line-through;
}
@keyframes ubunSpotsPulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%      { transform: scale(1.03); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
    .ubun-spots-badge.ubun-spots-low { animation: none; }
}
