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

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

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

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

.equipment-hero .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
}

/* ========================================
   Category Navigation
   ======================================== */
.category-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: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

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

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

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

/* Legacy Toggle */
.filter-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FF6600;
}

/* ========================================
   Equipment Grid
   ======================================== */
.equipment-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    background: #000;
    position: relative;
}

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

.equipment-section h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ========================================
   Equipment Card
   ======================================== */
.equipment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FF6600;
    font-weight: 600;
}

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

.status-badge.rental {
    background: #FFD700;
    color: #000;
}

.status-badge.legacy {
    background: #666;
    color: #fff;
}

/* Card Content */
.card-maker {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-quantity {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #FF6600;
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #fff;
    gap: 0.5rem;
}

.card-link::after {
    content: '→';
}

/* Legacy Card Style */
.equipment-card[data-status="legacy"] {
    opacity: 0.5;
}

.equipment-card[data-status="legacy"]:hover {
    opacity: 0.7;
}

/* ========================================
   Category Sections
   ======================================== */
.category-section {
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.category-section > * {
    position: relative;
    z-index: 1;
}

/* DAW Section */
.category-section[data-category="daw"]::before {
    background-image: url('../../images/equipment/ssl-mixer.jpg');
}

/* OUTBOARD Section 1: MIXER ~ MASTER RECORDER/REVERB */
.category-section[data-category="outboard-mixer"]::before {
    background-image: url('../../images/equipment/outboard-mixer.jpg');
}

/* OUTBOARD Section 2: MICPREAMP ~ CHANNEL STRIP */
.category-section[data-category="outboard-preamp"]::before {
    background-image: url('../../images/equipment/neve-rack.jpg');
}

/* OUTBOARD Section 3: COMP/LIMIT */
.category-section[data-category="outboard-comp"]::before {
    background-image: url('../../images/equipment/outboard-comp.jpg');
}

/* OUTBOARD Section 4: EQ ~ DI */
.category-section[data-category="outboard-eq"]::before {
    background-image: url('../../images/equipment/outboard-eq.jpg');
}

/* MIC Section */
.category-section[data-category="mic"]::before {
    background-image: none;
}

/* MIC Range Wrappers */
.mic-range {
    position: relative;
    padding: 2rem;
    margin: 0 -2rem;
    overflow: hidden;
}

.mic-range::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.mic-range > * {
    position: relative;
    z-index: 1;
}

/* MIC Range 1: TUBE MIC */
.mic-range-tube::before {
    background-image: url('../../images/equipment/tube-mic.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* MIC Range 2: CONDENSER MIC */
.mic-range-condenser::before {
    background-image: url('../../images/equipment/fender-mic.jpg');
}

/* MIC Range 3: DYNAMIC MIC ~ RIBBON MIC */
.mic-range-dynamic::before {
    background-image: url('../../images/equipment/dynamic-mic.jpg');
}

/* INSTRUMENTS Section 1: Drums & Keyboard */
.category-section[data-category="instruments-drums"]::before {
    background-image: url('../../images/equipment/drums.jpg');
}

/* INSTRUMENTS Section 2: Guitar & Bass Amps */
.category-section[data-category="instruments-amps"]::before {
    background-image: url('../../images/equipment/fender-mic.jpg');
}

/* INSTRUMENTS Section 3: Guitars */
.category-section[data-category="instruments-guitars"]::before {
    background-image: url('../../images/equipment/lespaul.jpg');
}

/* INSTRUMENTS Section 4: Effector */
.category-section[data-category="instruments-effector"]::before {
    background-image: url('../../images/equipment/effector.jpg');
}

/* PLUGIN Section */
.category-section[data-category="plugin"]::before {
    background-image: url('../../images/equipment/plugin-evertone.jpg');
}

.category-section:last-child {
    margin-bottom: 0;
}

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

.subcategory-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid #FF6600;
}

/* ========================================
   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;
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.stats-bar span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state p {
    font-size: 1.1rem;
}

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

    .category-nav {
        top: 50px;
    }

    .category-buttons {
        gap: 0.3rem;
    }

    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

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

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

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

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

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .category-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

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