/**
 * MORG Works Page - Styles
 * EVERTONE スタイル準拠
 */

/* ========================================
   Hero Section
   ======================================== */
.works-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
                url('../../images/equipment/ssl-mixer.jpg') center/cover no-repeat;
}

.works-hero .hero-content {
    text-align: center;
    z-index: 1;
}

.works-hero h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.works-hero .subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
}

/* ========================================
   Filter Navigation
   ======================================== */
.filter-nav {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-rec {
    background: #e74c3c;
    color: #fff;
}

.badge-mix {
    background: #3498db;
    color: #fff;
}

.badge-mas {
    background: #f39c12;
    color: #fff;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    font-family: 'Josefin Sans', sans-serif;
}

.filter-btn:hover {
    border-color: #FF6600;
    color: #FF6600;
}

.filter-btn.active {
    background: #FF6600;
    border-color: #FF6600;
    color: #fff;
}

/* Stats Bar */
.stats-bar {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.stats-count {
    color: #FF6600;
    font-weight: 600;
}

/* ========================================
   Pick Up Section
   ======================================== */
.pickup-section {
    background: rgba(255, 102, 0, 0.05);
    padding: 4rem 2rem;
    border-bottom: 1px solid rgba(255, 102, 0, 0.2);
}

.pickup-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.pickup-section h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    text-align: center;
    color: #FF6600;
}

.pickup-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.pickup-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.pickup-item:hover {
    transform: translateY(-5px);
}

.pickup-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pickup-item:hover img {
    border-color: #FF6600;
}

.pickup-info {
    padding: 0 0.5rem;
}

.pickup-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pickup-artist {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 980px) {
    .pickup-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pickup-item:nth-child(4),
    .pickup-item:nth-child(5) {
        display: none;
    }
}

@media (max-width: 600px) {
    .pickup-section {
        padding: 2rem 1rem;
    }

    .pickup-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pickup-item:nth-child(3) {
        display: none;
    }
}

/* ========================================
   Artists Section
   ======================================== */
.artists-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.artists-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.artists-section h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.artists-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.8rem;
    line-height: 1.8;
}

.artists-cloud span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.artists-cloud span:hover {
    color: #FF6600;
}

.artists-cloud span.etc {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* ========================================
   Works Section
   ======================================== */
.works-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    background: #000;
}

.works-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Year Section */
.year-section {
    margin-bottom: 4rem;
}

.year-section.hidden {
    display: none;
}

.year-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #FF6600;
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Work Card */
.work-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.work-card.hidden {
    display: none;
}

/* Work Image */
.work-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Work Info */
.work-info {
    padding: 1rem;
}

.work-badges {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.work-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.work-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.work-date {
    font-size: 0.75rem;
    color: #FF6600;
    margin-bottom: 0.5rem;
}

.work-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #FF6600;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #ff7722;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 980px) {
    .works-hero h1 {
        font-size: 2.5rem;
    }

    .filter-nav {
        top: 50px;
    }

    .legend {
        gap: 1rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .year-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .works-hero {
        min-height: 40vh;
    }

    .works-hero h1 {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }

    .legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .filter-buttons {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .works-section {
        padding: 2rem 1rem;
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .work-info {
        padding: 0.8rem;
    }

    .work-title {
        font-size: 0.85rem;
    }

    .work-desc {
        display: none;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }

    .artists-section {
        padding: 2rem 1rem;
    }

    .artists-cloud span {
        font-size: 0.7rem;
    }
}
