﻿/* Base */
html {
	font-size: 14px;
	position: relative;
	min-height: 100%;
}

@media (min-width: 768px) {
	html {
		font-size: 16px;
	}
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
    color: #333;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* SME Core Styles - Port from legacy */
.box {
    margin-bottom: 20px;
}

/* Color scheme consistency - Legacy colors */
a {
    color: #337ab7;
    text-decoration: none;
}

    a:hover {
        color: #23527c;
        text-decoration: underline;
    }

/* Navbar (legacy dark) */
.navbar-inverse {
	min-height: 86px;
	align-items: stretch;
	padding-top: 6px;
	padding-bottom: 6px;
	background-color: #222;
	border-color: #080808;
}

.navbar-inverse .container {
	display: grid;
	align-items: center;
	gap: 12px;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo search social";
}

.navbar-search {
	width: 100%;
}

	.navbar-social--top {
		justify-self: end;
	}

.navbar-inverse .navbar-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	color: #f5f5f5;
}

.navbar-inverse .navbar-brand.sme-brand {
	gap: 8px;
}

.navbar-inverse .navbar-brand.sme-brand .sme-brand__logo {
	display: block;
	flex: 0 0 auto;
	max-height: 48px;
	width: auto;
}

.navbar-inverse .navbar-brand.sme-brand .sme-brand__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1;
	max-height: 48px;
	overflow: hidden;
	font-size: 22px;
	font-weight: 600;
	color: #fff;
}

.navbar-inverse .navbar-brand.sme-brand .sme-brand__text > span {
	display: block;
}

.navbar-social--top {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	grid-area: social;
	justify-self: end;
}

.navbar-toggler--top {
	align-self: center;
	grid-area: toggler;
}

.navbar-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	gap: 6px;
	grid-area: search;
}

.navbar-brand {
	grid-area: logo;
}

@media (min-width: 992px) {
	.navbar-main {
		min-width: 360px;
	}
}

.navbar-main #sForm.navbar-form {
	max-width: 760px;
}

.navbar-main .navbar-collapse {
	flex-basis: auto;
	width: 100%;
}

.navbar-main .navbar-nav {
	width: 100%;
}

.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .nav-link {
	color: #ffffff;
	padding: 15px 18px;
	font-weight: 500;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .nav-link:hover {
	color: #ffd800;
}

/* Bootstrap 5: ensure hamburger icon is visible with legacy dark navbar */
.navbar-inverse .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.35);
}

.navbar-inverse .navbar-toggler:focus {
	box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.15);
}

.navbar-inverse .navbar-toggler-icon {
	width: 1.5em;
	height: 1.5em;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar responsive */
@media (max-width: 991.98px) {
	.navbar-inverse {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.navbar-inverse .container {
		grid-template-columns: auto 1fr auto;
		grid-template-areas:
			"logo social toggler"
			"search search search";
		gap: 10px;
		align-items: center;
	}

	.navbar-brand,
	.navbar-social--top,
	.navbar-toggler--top {
		align-self: center;
	}

	.navbar-social--top .sme-share__list {
		align-items: center;
	}

	/* Fila 2 (buscador y menú) */
	.navbar-main {
		width: 100%;
		gap: 10px;
	}

	.navbar-search {
		width: 100%;
	}

	.navbar-toggler--top {
		display: inline-flex;
		margin-left: 6px;
	}

	.navbar-main #sForm.navbar-form {
		max-width: none;
		width: 100%;
	}

	.navbar-inverse .navbar-collapse {
		background-color: #222;
		border-top: 1px solid #080808;
		padding: 0.25rem 0;
		border-bottom-left-radius: 10px;
		border-bottom-right-radius: 10px;
		box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
	}

	.navbar-inverse .navbar-nav .nav-link,
	.navbar-inverse .navbar-nav > li > a {
		color: #fff;
		padding: 0.7rem 1rem;
		font-weight: 600;
		line-height: 1.2;
		text-decoration: none;
	}

	.navbar-inverse .navbar-nav .nav-link:hover,
	.navbar-inverse .navbar-nav > li > a:hover {
		background: rgba(255, 255, 255, 0.06);
		color: #ffd800;
		text-decoration: none;
	}

	.navbar-inverse .navbar-nav .nav-link:focus-visible {
		outline: 2px solid rgba(255, 216, 0, 0.9);
		outline-offset: 2px;
	}

	.navbar-inverse .navbar-nav .nav-item .nav-link.active {
		background: rgba(255, 255, 255, 0.08);
	}

	.navbar-inverse .navbar-nav .nav-item + .nav-item {
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
}

@media (min-width: 992px) {
	.navbar-main {
		justify-content: flex-start;
	}

	.navbar-inverse .navbar-brand,
	.navbar-social--top {
		align-self: flex-start;
		margin-top: 6px;
	}
}

@media (max-width: 480px) {
	.navbar-inverse .container,
	.navbar-toprow {
		gap: 8px;
	}

	.navbar-inverse .navbar-brand.sme-brand {
		gap: 6px;
		padding-right: 0;
	}

	.navbar-inverse .navbar-brand.sme-brand .sme-brand__logo {
		max-height: 44px;
	}

	.navbar-inverse .navbar-brand.sme-brand .sme-brand__text {
		font-size: 18px;
		max-height: 44px;
	}

	.navbar-social--top {
		gap: 4px;
	}

	.navbar-inverse .navbar-toggler--top {
		padding-left: 8px;
		padding-right: 8px;
	}
}

@media (max-width: 420px) {
	.navbar-inverse .navbar-brand.sme-brand .sme-brand__text {
		font-size: 16px;
	}
}

/* Share buttons (no external libs) */
.sme-share__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sme-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	text-decoration: none;
}

.sme-share__btn:hover {
	background: rgba(255, 255, 255, .20);
	text-decoration: none;
}

.sme-share__btn:focus-visible {
	outline: 2px solid rgba(255, 216, 0, .9);
	outline-offset: 2px;
}

.sme-share__icon {
	width: 18px;
	height: 18px;
}

/* Share buttons (no external libs) */
.sme-share__list {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sme-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: #fff;
    background: rgba(255,255,255,.12);
    text-decoration: none;
}

.sme-share__btn:hover {
    background: rgba(255,255,255,.20);
    text-decoration: none;
}

.sme-share__btn:focus-visible {
    outline: 2px solid rgba(255,216,0,.9);
    outline-offset: 2px;
}

.sme-share__icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 576px) {
    .navbar-social {
        margin-top: 8px;
    }
}

/* Panels - Full width in sidebar */
.panel {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    width: 100%;
}

.panel-default > .panel-heading {
    background-color: #222;
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 3px 3px 0 0;
}

    .panel-default > .panel-heading a {
        color: #fff !important;
        text-decoration: none;
    }

        .panel-default > .panel-heading a:hover {
            color: #ffd800 !important;
        }

.panel-body {
    padding: 0;
}

.list-group {
    margin: 0;
}

.list-group-item {
    border: 0;
    border-top: 1px solid #eee;
    padding: 8px 15px;
    font-size: .95rem;
    background-color: #fff;
}

    .list-group-item:first-child {
        border-top: 0;
    }

    .list-group-item:hover {
        background-color: #fff;
    }

    .list-group-item a {
        color: #337ab7;
        text-decoration: none;
    }

        .list-group-item a:hover {
            color: #23527c;
            text-decoration: underline;
        }

/* Search bar - integrated appearance */
#sForm.navbar-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
}

#sForm .input-group {
    width: 100%;
    display: flex;
}

#sForm .form-control {
    flex: 1;
    border-radius: 4px 0 0 4px;
    border-right: 0;
    height: 46px;
    font-size: 1.1rem;
}

#sForm .input-group-btn {
    display: flex;
}

#sButton {
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    height: 46px;
    padding: 0 24px;
    font-size: 1rem;
    border: 1px solid #4cae4c;
    background-color: #5cb85c;
}

    #sButton:hover {
        background-color: #4cae4c;
        border-color: #449d44;
    }

/* Headings - Dark color for consistency */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    margin-bottom: .6rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: .5rem;
    margin-top: 20px;
}

    h2 a {
        color: #333;
        text-decoration: none;
    }

        h2 a:hover {
            color: #337ab7;
            text-decoration: underline;
        }

h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.panel-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Most Popular / Most Searched sections */
.panel-default .panel-heading {
    font-size: 1rem;
}

/* Pagination - Legacy blue style */
.pagination {
    margin: 20px 0;
}

    .pagination .page-link {
        color: #337ab7;
        background-color: #fff;
        border: 1px solid #ddd;
        padding: 6px 12px;
        text-decoration: none;
    }

        .pagination .page-link:hover {
            color: #23527c;
            background-color: #eee;
            border-color: #ddd;
        }

    .pagination .page-item.active .page-link {
        background-color: #337ab7;
        border-color: #337ab7;
        color: #fff;
    }

    .pagination .page-item.disabled .page-link {
        color: #777;
        background-color: #fff;
        border-color: #ddd;
    }
    /* Fix: evitar que la paginación por letras desborde la columna */
    .pagination-letras .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        max-width: 100%;
        overflow-x: auto; /* permite scroll horizontal en pantallas pequeñas */
        -webkit-overflow-scrolling: touch;
        padding:0.25rem;
    }

    .pagination-letras .pagination .page-item {
        flex: 0 0 auto; /* cada item mantiene su tamaño pero no estira */
        white-space: nowrap;
    }
/* Tables - consistent styling */
table {
    color: #333;
    width: 100%;
    margin-bottom: 0;
}

    table th {
        background-color: #f5f5f5;
        color: #333;
        font-weight: 600;
        padding: 8px;
        border: 1px solid #ddd;
    }

    table td {
        color: #333;
        padding: 8px;
        border: 1px solid #ddd;
        vertical-align: middle;
    }

        /* Active table cells (label cells) */
        table td.active {
            background-color: #f5f5f5;
            font-weight: 600;
            width: 120px;
        }

/* Table bordered (Bootstrap override) */
.table-bordered {
    border: 1px solid #ddd;
}

    .table-bordered > tbody > tr > td,
    .table-bordered > tbody > tr > th,
    .table-bordered > tfoot > tr > td,
    .table-bordered > tfoot > tr > th,
    .table-bordered > thead > tr > td,
    .table-bordered > thead > tr > th {
        border: 1px solid #ddd;
    }

/* Sheet music item list styling */
.box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

    .box h3 a {
        color: #337ab7;
        text-decoration: none;
    }

        .box h3 a:hover {
            color: #23527c;
            text-decoration: underline;
        }

.panel-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

    .panel-body h3 a {
        color: #337ab7;
        text-decoration: none;
    }

        .panel-body h3 a:hover {
            color: #23527c;
            text-decoration: underline;
        }

.panel-body h4 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 8px;
}

    .panel-body h4 a {
        color: #337ab7;
    }

.panel-body p {
    margin-bottom: 8px;
    color: #555;
}

.box p {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

    .box p.text-muted {
        color: #777;
    }

        .box p.text-muted strong {
            font-weight: 600;
            color: #333;
        }

.panel-body small.text-muted {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}

    .panel-body small.text-muted strong {
        font-weight: 600;
        color: #333;
    }

/* Content links in body */
.body-content a {
    color: #337ab7;
}

    .body-content a:hover {
        color: #23527c;
    }

/* Footer */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: .85rem;
    color: #777;
}

    footer a {
        color: #337ab7;
    }

        footer a:hover {
            color: #23527c;
        }

/* Utilities */
.body-content {
    padding-top: 10px;
}

.body-content > .row::after {
	content: "";
	display: table;
	clear: both;
}

.navbar-fixed-top {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
    top: 0;
}

body {
    padding-top: 130px;
}

@media (min-width: 992px) {
	body {
		padding-top: 96px;
	}
}

/* Text color utilities */
.text-muted {
    color: #777 !important;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .navbar-social {
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 12px;
    }

    #sForm .form-control {
        font-size: 1rem;
        height: 42px;
    }

    #sButton {
        height: 42px;
        padding: 0 18px;
    }

	.row.box > [class^="col-"] {
		margin-bottom: 20px;
	}

	.row.box > [class^="col-"]:last-child {
		margin-bottom: 0;
	}

	.body-content .ads-container,
	.body-content .adsbygoogle {
		margin-bottom: 20px;
	}
}

.icon-file {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    vertical-align: middle;
}


/* Diseño semántico para tarjetas de listado de partituras */
.score-card {
    display: block;
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

    /* Alternar tono suave между рядами для улучшения чтения */
    .score-card:nth-child(odd) {
        background: #fafafa;
    }

.score-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.score-content {
    flex: 1 1 auto;
    min-width: 0; /* избегать переполнения заголовка */
}

.score-title {
    margin: 0 0 8px 0; /* разделение мета */
    /*font-size: 1.25rem;*/
    line-height: 1.3;
    word-wrap: break-word;
}

.score-meta {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .score-meta li {
        margin: 4px 0;
        display: flex;
        align-items: center;
    }

.score-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .score-meta-item .icon-file {
        flex-shrink: 0;
    }

    .score-meta-item span {
        line-height: 1.5;
    }

.score-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.score-btn {
    border-color: #ffffff !important;
}

/* Artist list: responsive columns with legacy table-like look */
.artist-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
}

.artist-list .list-group-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    width: 100%;
    display: block;
    border: 1px solid #ddd;
    margin: 0;
}

@media (max-width: 767px) {
    .artist-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}
.related-links .related-link {
    margin-right: .40rem; 
    margin-bottom: .40rem; 
    padding: 0.40rem 0.8rem;
}

