:root {
    --bg-dark: #0a0c10;
    --bg-panel: rgba(22, 27, 34, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-gold: #d4af37;
    --accent-gold-glow: rgba(212, 175, 55, 0.4);
    --accent-blue: #58a6ff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-gold), transparent 70%);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue), transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8a2be2, transparent 70%);
    top: 40%;
    left: 40%;
    animation-duration: 25s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    text-align: center;
    padding: 3rem 1rem 1rem;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--accent-gold-glow);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.5);
}

.tab-btn.active {
    color: #000;
    border-color: var(--accent-gold);
    font-weight: 500;
}

.tab-btn.active::before {
    opacity: 1;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 5;
}

.view-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Composer Card */
.composer-card {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
}

.composer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-gold-glow);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: grayscale(40%) contrast(1.1);
}

.composer-card:hover .card-image {
    filter: grayscale(0%) contrast(1.2);
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.8) 50%, transparent 100%);
    transition: var(--transition-smooth);
}

.composer-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(10, 12, 16, 1) 0%, rgba(10, 12, 16, 0.9) 60%, transparent 100%);
}

.card-name {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.card-era {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

/* Network View */
.network-container {
    height: 600px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.network-header {
    text-align: center;
    margin-bottom: 1rem;
}

.network-header h2 {
    color: var(--accent-gold);
    font-size: 1.8rem;
}

.network-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#composer-network {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 1rem;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: var(--transition-smooth);
    padding: 2.5rem;
}

.modal-backdrop.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
}

.modal-image-col {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

#modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.modal-era {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.modal-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#modal-name {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text-primary);
}

#modal-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 300;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.detail-section h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.detail-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #c9d1d9;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image-col {
        height: 300px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}
