/* 
* VinylTracker - eBay Auction Results for Music Collectibles
* Custom CSS Styles
* Version: 1.0.0
*/
@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --body-color: #f5f5f5;
    --text-color: #333333;
    --navbar-height: 70px;
    --transition-speed: 0.3s;
    --box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --box-shadow-medium: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

/* Common elements styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: #0a58ca;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}


.logo-music {
    font-family: "Corben", cursive;
    color: #fff;
    font-size: 25px;
}

.logo-price {
    font-family: "Corben", cursive;
    color: #fff;
    font-size: 25px;
}

.logo-guide {
    font-family: "Corben", cursive;
    color: #de6712;
    font-size: 25px;
}

.section-heading {
    font-weight: 700;
    position: relative;
    margin-bottom: 1.5rem;
}

/* Container for pages with breadcrumb */
.breadcrumb-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Navbar & Navigation
--------------------------------------------------------------*/
.navbar {
    padding: 5px 0px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:before,
.nav-link.active:before {
    width: 70%;
}

.dropdown-menu {
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #343a40;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    color: rgba(255, 255, 255, 1) !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 8px;
}

.social-icons a:hover {
    color: white !important;
    transform: translateY(-3px);
    background-color: var(--primary-color);
}

/* Offcanvas Navbar */
.offcanvas {
    width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-body .navbar-nav {
    margin-top: 1rem;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 0;
}

.offcanvas-body .social-icons {
    margin-top: 2rem;
}

@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .offcanvas {
        width: 280px;
    }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    padding-top: 1rem !important;
    background-color: #f8f9fa;
    padding-top: 3rem;
    /* Ridotto da 6rem a 3rem */
    padding-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}



.hero-bg {
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-form-results.png') center center / cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-bg .container {
    position: relative;
    z-index: 2;
}



.search-form {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.stats-box {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, .05);
    transition: all 0.3s ease;
    min-width: 100px;
}

.stats-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    border-color: var(--primary-color);
}

.stats-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 2rem;
        /* Ridotto da 4rem a 2rem */
        padding-bottom: 3rem;
    }

    .hero-content {
        margin-top: 2rem;
    }
}

/*--------------------------------------------------------------
# Main Content Section
--------------------------------------------------------------*/
.main-content {
    background-color: var(--body-color);
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.results-filter {
    margin-bottom: 1.5rem;
}

.auction-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.auction-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
    border-color: rgba(13, 110, 253, 0.2);
}

.auction-image {
    transition: all 0.3s ease;
}

.auction-item:hover .auction-image {
    transform: scale(1.05);
}

.auction-price {
    color: var(--primary-color);
}

.pagination .page-link {
    border-radius: 0.2rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.2);
}

/* Sidebar */
.sidebar-widget {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--box-shadow-medium);
}

.sidebar-widget h4 {
    position: relative;
    padding-bottom: 0.75rem;
}

.sidebar-widget h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.record-sale {
    transition: all 0.3s ease;
}

.record-sale:hover {
    transform: translateX(5px);
}

/*--------------------------------------------------------------
# Blog Section
--------------------------------------------------------------*/
.blog-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.blog-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow-medium);
}

.blog-img-container {
    overflow: hidden;
}

.blog-card .card-img-top {
    transition: all 0.5s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.1);
}

.blog-card .card-title {
    font-weight: 600;
}

.blog-card .btn-link {
    font-weight: 500;
    padding: 0;
    transition: all 0.3s ease;
}

.blog-card .btn-link:hover {
    padding-left: 5px;
}

/*--------------------------------------------------------------
# Carousel Section
--------------------------------------------------------------*/
.carousel-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: white;
}

.carousel-item {
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-10px);
}

.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.owl-nav button:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.owl-prev {
    left: -20px;
}

.owl-next {
    right: -20px;
}

.owl-dots {
    margin-top: 2rem !important;
}

.owl-dot span {
    transition: all 0.3s ease !important;
}

.owl-dot.active span,
.owl-dot:hover span {
    background-color: var(--primary-color) !important;
}

/*--------------------------------------------------------------
# Details Page
--------------------------------------------------------------*/
.details-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.auction-details {
    margin-bottom: 2rem;
}

.item-title {
    font-size: 2rem;
    font-weight: 700;
}

.item-meta .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.main-image {
    transition: all 0.5s ease;
}

.main-image:hover {
    transform: scale(1.05);
}

.thumbnail {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.price-card {
    transition: all 0.3s ease;
}

.price-card:hover {
    box-shadow: var(--box-shadow-medium);
}

.price-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.similar-item {
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.similar-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateX(5px);
}

.similar-item h4 {
    transition: all 0.3s ease;
}

.similar-item:hover h4 {
    color: var(--primary-color);
}

.seller-avatar {
    transition: all 0.3s ease;
}

.seller-info:hover .seller-avatar {
    transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Page
--------------------------------------------------------------*/
.blog-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.blog-sidebar {
    position: sticky;
    top: 90px;
    opacity: 1 !important;
    /* Force opacity to ensure visibility */
}

.article-list-item {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1 !important;
    /* Force opacity to ensure visibility */
}

.article-list-item:hover,
.article-list-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

.article-list-item.active {
    border-left: 3px solid var(--primary-color);
    padding-left: calc(0.5rem - 3px);
}

.blog-article {
    display: none;
}

.blog-article.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.article-content .lead {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
}

.article-content h2 {
    color: #333;
    font-weight: 700;
    margin-top: 2rem;
}

.article-content h3 {
    color: #444;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.quote-block {
    border-radius: 0.25rem;
    font-size: 1.1rem;
}

.article-tags .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.article-tags .badge:hover {
    background-color: var(--primary-color);
}

.article-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.related-articles .card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--box-shadow);
}

.related-articles .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
    background-color: #000;
    color: white;
}

footer h5 {
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
    padding-left: 5px;
}

footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

footer .social-icons a:hover {
    transform: translateY(-3px);
}

footer .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

footer .btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    .item-title {
        font-size: 1.75rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .price-card {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }

    .search-form:hover {
        transform: none;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .stats-box {
        min-width: 80px;
        padding: 0.5rem !important;
    }

    .stats-box h3 {
        font-size: 1.25rem;
    }

    .item-title {
        font-size: 1.5rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .price-card .price {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
    }

    .article-meta span {
        margin-bottom: 0.5rem;
    }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-scale {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Force elements to be visible */
.sidebar,
.sidebar-widget,
.blog-sidebar,
.article-list-item,
.owl-carousel .item {
    opacity: 1 !important;
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

/*--------------------------------------------------------------
# Accessibility Improvements
--------------------------------------------------------------*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.btn:focus {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

/* Skip to content link - visible on focus for keyboard users */
.skip-to-content {
    position: absolute;
    top: -999px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* Custom styles for search tabs - remove bottom line */
.nav-pills .nav-link:before {
    display: none !important;
}

/* Loading Animation */
.blink-text {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Loader Spinner */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Font optimization - prevent invisible text during font load */
.fa, .fas, .far, .fab, .fal, .fad, .fat {
    font-display: swap !important;
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
    -webkit-font-variant: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}