/**
 * Zorotan Theme - Discography Page Styles
 * 
 * Discography specific styles only
 * 
 * @package Zorotan
 * @version 1.0.0
 */

/* ========================================
   1. ALBUM/SINGLE GRID
   ======================================== */

.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.album-item {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.album-item:hover {
    transform: translateY(-4px);
}

.album-cover {
    aspect-ratio: 1;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.album-cover:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.album-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-item:hover .album-cover-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
}

.play-button::before {
    content: '▶';
    margin-left: 2px;
}

.release-type {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-gray);
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    text-transform: uppercase;
    font-weight: 500;
}

.album-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1);
    line-height: 1.3;
}

.album-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.release-date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* ========================================
   1.5 CONTENT HEADER (追加)
   ======================================== */

.content-header {
    margin-bottom: calc(var(--spacing-unit) * 6);
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 0.1em;
}

/* ========================================
   2. RELEASE DETAIL PAGE
   ======================================== */

.release-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.release-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.release-artwork {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
}

.album-cover-large {
    aspect-ratio: 1;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Sidebar boxes */
.release-info-box,
.streaming-box,
.purchase-box {
    padding: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--border-color);
    background-color: var(--bg-gray);
    border-radius: 8px;
    margin-top: calc(var(--spacing-unit) * 3);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 13px;
    padding-bottom: calc(var(--spacing-unit) * 1);
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* ========================================
   3. TRACK LISTINGS
   ======================================== */

.tracklist-detailed {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.track-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    transition: all 0.3s ease;
}

.track-item:hover {
    background: var(--bg-gray);
    transform: translateX(4px);
}

.track-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    min-width: 30px;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--primary-color);
}

.track-description {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.track-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    font-size: 12px;
    color: var(--text-light);
}

/* Simple tracklist */
.tracklist {
    list-style: none;
    counter-reset: track-counter;
}

.tracklist li {
    counter-increment: track-counter;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-gray);
    position: relative;
    padding: calc(var(--spacing-unit) * 1) 0 calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tracklist li:last-child {
    border-bottom: none;
}

.tracklist li:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.tracklist li::before {
    content: counter(track-counter, decimal-leading-zero) ".";
    position: absolute;
    left: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

/* ========================================
   4. STREAMING & PURCHASE LINKS
   ======================================== */

.stream-buttons,
.purchase-buttons {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.stream-btn,
.purchase-btn {
    padding: calc(var(--spacing-unit) * 2);
    font-size: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.stream-btn:hover,
.purchase-btn:hover {
    background-color: var(--text-gray);
    transform: translateY(-1px);
}

/* Platform-specific colors */
.stream-btn.spotify { background-color: #1DB954; }
.stream-btn.apple { background-color: #000; }
.stream-btn.youtube { background-color: #FF0000; }
.stream-btn.amazon { background-color: #FF9900; }

/* ========================================
   5. FILTER CONTROLS (Discography-specific)
   ======================================== */

.discography-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
    padding: calc(var(--spacing-unit) * 3) 0;
    border-bottom: 1px solid var(--border-color);
}

.release-type-filters {
    display: flex;
    gap: calc(var(--spacing-unit) * 1);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

.sort-select {
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
    font-size: 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-gray);
    border-radius: 4px;
    cursor: pointer;
}

/* ========================================
   RELEASE COMMENT STYLE
   ======================================== */

.release-comment {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: calc(var(--spacing-unit) * 1);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--border-color);
}

/* トラックリスト関連のスタイルを削除またはコメントアウト */
/*
.tracklist {
    display: none;
}
*/

/* フィルターコントロール関連のスタイルも削除 */
/*
.discography-controls {
    display: none;
}
*/

/* ========================================
   7. LINE STICKER SECTION
   ======================================== */

.line-sticker-section {
    margin-top: calc(var(--spacing-unit) * 10);
    margin-bottom: calc(var(--spacing-unit) * 8);
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--primary-color);
}

.line-sticker-item {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.line-sticker-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.line-sticker-image {
    width: 100%;
    height: auto;
    display: block;
}

.line-sticker-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 200, 0, 0.9);
    padding: calc(var(--spacing-unit) * 2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.line-sticker-item:hover .line-sticker-overlay {
    transform: translateY(0);
}

.line-sticker-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
}


/* ========================================
   6. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .discography-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: calc(var(--spacing-unit) * 4);
    }

    .release-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }

    .album-cover-large {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .discography-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: calc(var(--spacing-unit) * 3);
    }

    .discography-controls {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 3);
        align-items: stretch;
    }

    .release-type-filters {
        flex-wrap: wrap;
        justify-content: center;
    }

    .track-item {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }

    .track-meta {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1);
    }
}

@media (max-width: 480px) {
    .discography-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 3);
    }

    .album-cover-large {
        max-width: 100%;
    }

    .track-item {
        padding: calc(var(--spacing-unit) * 2);
    }
    .line-sticker-item {
        max-width: 90%;
    }
}