/* musicker.art/assets/css/explore_style.css */
/* version 2.0 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');

:root {
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;

    --color-bg: #FDFCF8; /* 少し温かみのあるオフホワイト */
    --color-text-primary: #3a3a3a;
    --color-text-secondary: #858585;
    --color-accent: #5A7D7C; /* 深みのあるセージグリーン */
    --color-border: #EAE8E2;
    --color-shadow: rgba(90, 125, 124, 0.1);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.explore-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* --- Header --- */
.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.site-title-header a {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--color-accent);
    text-decoration: none;
}
.explore-header nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}
.explore-header nav a:hover,
.explore-header nav a.active {
    color: var(--color-accent);
}

/* --- Main Content --- */
.explore-main h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}
.explore-main p {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 50px auto;
    text-align: center;
    line-height: 1.8;
}

/* --- Search Bar --- */
.search-container {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}
.search-form {
    display: flex;
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    background-color: #fff;
    box-shadow: 0 5px 20px var(--color-shadow);
    overflow: hidden;
}
.search-input {
    flex-grow: 1;
    border: none;
    background: none;
    padding: 15px 25px;
    font-size: 16px;
    font-family: var(--font-sans);
    outline: none;
    color: var(--color-text-primary);
}
.search-input::placeholder {
    color: #b0b0b0;
}
.search-button {
    border: none;
    background-color: var(--color-accent);
    color: white;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}
.search-button:hover {
    background-color: #4a6b6a;
}


/* --- Song Sections --- */
.explore-section {
    margin-bottom: 60px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
}

/* --- Song Grid & Carousel --- */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.song-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 5px 30px 5px; /* padding for scrollbar and shadow */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.song-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


/* --- Song Card --- */
.song-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}
.song-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--color-shadow);
}
.song-card-artwork {
    width: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    background-color: #f5f5f5;
}
.song-card-info {
    text-align: left;
}
.song-card-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-card-artist {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- Messages --- */
.no-songs-message, .error-message, .loading-message {
    color: var(--color-text-secondary);
    width: 100%;
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
}
