@import "tailwindcss";


.sidebar-gradient {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
}

.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
}

.streaming-icon {
    transition: all 0.2s ease;
}

.streaming-icon:hover {
    transform: scale(1.1);
}

/* Animações personalizadas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

.slide-out-left {
    animation: slideOutLeft 0.3s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #68d391;
}

/* Menu Mobile */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 40;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 50;
    transition: left 0.3s ease-out;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

/* Header Mobile */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    border-bottom: 1px solid #374151;
    z-index: 30;
    padding: 0 1rem;
}

/* Footer Player Responsivo */
.footer-player {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Responsividade */
@media (max-width: 1023px) {
    /* Header mobile */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: between;
    }
    
    /* Sidebar desktop escondida */
    .desktop-sidebar {
        display: none;
    }
    
    /* Conteúdo principal ajustado */
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }    
}

/* Responsividade */
@media (max-width: 768px) {
    /* Header mobile */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: between;
    }
    
    /* Sidebar desktop escondida */
    .desktop-sidebar {
        display: none;
    }
    
    /* Conteúdo principal ajustado */
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    /* Cards de artistas em grid menor */
    .artists-grid {
        /* grid-template-columns: repeat(2, 1fr) !important; */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)  minmax(0, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Perfil do artista */
    .artist-profile {
        flex-direction: column !important;
        text-align: center;
    }
    
    .artist-profile .artist-image {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 0.5rem auto;
    }
    
    .artist-profile h1 {
        font-size: 1.75rem !important;
    }
    
    /* Track layout */
    .track-layout {
        flex-direction: column !important;
        text-align: center;
    }
    
    .track-layout .track-image {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 1rem auto;
    }
    
    .track-layout h1 {
        font-size: 2.5rem !important;
    }
    
    /* Lista de músicas */
    .track-list-item {
        padding: 0.5rem 0pt !important;
    }
    
    .track-list-item .track-info {
        flex: 1;
        min-width: 0; /* Para permitir text-overflow */
    }
    
    .track-list-item .track-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .track-list-item .track-meta {
        font-size: 0.8rem;
    }
    
    /* Streaming links em grid */
    .streaming-links {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    /* Footer player mobile */
    .footer-player {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-player .player-info {
        order: 1;
        text-align: center;
    }
    
    .footer-player .player-controls {
        order: 2;
        justify-content: center;
    }
    
    .footer-player .player-volume {
        order: 3;
        justify-content: center;
    }
    
    /* Busca */
    .search-input {
        font-size: 1rem !important;
        padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    }
    
    /* Padding geral reduzido */
    .page-content {
        padding: 1rem !important;
    }
    
    /* Botões menores */
    .btn-primary {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem;
    }
    
    .btn-secondary {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .artists-grid {
        /* grid-template-columns: repeat(2, 1fr) !important;*/
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)  minmax(0, 1fr) !important;
    }
    
    .streaming-links {
        /* grid-template-columns: 1fr !important; */
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .streaming-links-iconify-icon {
        visibility: hidden;
        display: none;
    }
    
    /* Títulos menores */
    .page-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
    
    /* Footer player ainda mais compacto */
    .footer-player {
        padding: 0.75rem;
    }
    
    .footer-player .player-info h4 {
        font-size: 0.9rem;
    }
    
    .footer-player .player-info p {
        font-size: 0.8rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .artist-profile .artist-image,
    .track-layout .track-image {
        width: 150px !important;
        height: 150px !important;
    }
    
    .artist-profile h1,
    .track-layout h1 {
        font-size: 2rem !important;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .artists-grid {
        /* grid-template-columns: repeat(3, 1fr) !important; */ 
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)  minmax(0, 1fr) !important;
    }
    
    .streaming-links {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Utilitários responsivos */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

.artist-spotify-image, .track-spotify-image {
    border-radius: 2px;
}

@media (min-width: 1024px) {
    .artist-spotify-image, .track-spotify-image {
        border-radius: 4px;
    }
}

.streaming-icon-svg {
    margin-bottom: 0px;
}

.profile-link {
    
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show2 {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}

#snackbar.show3 {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackbar.show5 {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 4.5s;
}