/*
Theme Name: Musicly
Description: A professional WordPress theme for music bands and musicians. Features a modern design with audio players, event management, and music-focused layouts.
Author: Tu Nombre
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: musicly
Tags: music, bands, musicians, events, audio, entertainment, responsive, bootstrap

Musicly WordPress Theme, Copyright 2025
Musicly is distributed under the terms of the GNU GPL.
*/

/* 
 * Custom WordPress theme styles
 * Main styles are loaded from assets/app/css/main.css
 */

/* WordPress specific styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    padding: 10px 0;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* WordPress Gallery */
.gallery {
    margin-bottom: 20px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0 0 20px;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

/* WordPress Comments */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* WordPress Post Navigation */
.post-navigation {
    margin: 40px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

/* WordPress Search Form */
.search-form {
    position: relative;
    display: flex;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-submit {
    padding: 10px 20px;
    background: var(--ms-primary-color, #ff6b35);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* WordPress Admin Bar Adjustments */
.admin-bar #header-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #header-sticky {
        top: 46px;
    }
}

/* Responsive Embeds */
.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* WordPress Blocks Support */
.wp-block-image {
    margin-bottom: 20px;
}

.wp-block-quote {
    border-left: 4px solid var(--ms-primary-color, #ff6b35);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
}

.wp-block-pullquote {
    text-align: center;
    border-top: 2px solid var(--ms-primary-color, #ff6b35);
    border-bottom: 2px solid var(--ms-primary-color, #ff6b35);
    padding: 30px 0;
    margin: 30px 0;
}

/* Custom WordPress Menu Styles */
.main-menu ul li.current-menu-item > a,
.main-menu ul li.current-menu-parent > a {
    color: var(--ms-primary-color, #ff6b35);
}

/* WordPress Widget Styles */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: inherit;
}

.widget ul li a:hover {
    color: var(--ms-primary-color, #ff6b35);
}

/* WordPress Pagination */
.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--ms-primary-color, #ff6b35);
    color: white;
    border-color: var(--ms-primary-color, #ff6b35);
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: bold;
}

/* Bloqueo de scroll cuando el offcanvas está abierto */
.no-scroll { overflow: hidden; }

/* Hamburguesa básica */
.header__hamburger .hamburger-btn {
  display: inline-flex; gap: 6px; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.header__hamburger .hamburger-btn span {
  display: block; width: 22px; height: 2px; background: currentColor;
}

/* Desktop: mostramos menú; Mobile: lo ocultamos */
.d-xl-block { display: none; }
.d-xl-none  { display: inline-flex; }
@media (min-width: 1200px) {
  .d-xl-block { display: block; }
  .d-xl-none  { display: none !important; }
}

/* Offcanvas por defecto oculto */
.offcanvas__info {
  position: fixed; top: 0; right: -100%; width: 85%; max-width: 380px; height: 100vh;
  background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.1); z-index: 9999;
  transition: right .3s ease;
  overflow-y: auto;
}
.offcanvas__info.is-open { right: 0; }

/* Overlays clickeables */
.offcanvas__overlay,
.offcanvas__overlay-white {
  position: fixed; inset: 0; z-index: 9998; display: none; border: 0; background: transparent;
}
.offcanvas__overlay { background: rgba(0,0,0,.35); }

.offcanvas__info.is-open ~ .offcanvas__overlay,
.offcanvas__info.is-open ~ .offcanvas__overlay-white {
  display: block;
}

/* Asegurar que el menú de desktop no rompa en mobile */
.main-menu__list { list-style: none; margin: 0; padding: 0; }
.main-menu__list > li { position: relative; }
