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

:root {
    --bg-dark: #1a1d21;
    --bg-card: rgba(30, 34, 40, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-blue: #4a90e2;
    --danger: #dc3545;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(74, 144, 226, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.05em;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Navbar */
.navbar-custom {
    background: rgba(26, 29, 33, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

.nav-link.active, .nav-link:hover {
    color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    background: linear-gradient(45deg, #fff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Forms */
.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, #d4af37, #c5a028);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e5c048, #d4af37);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: #000;
}

/* Zange List */
.zange-content {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.zange-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.btn-action {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-action:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.btn-forgive {
    color: var(--accent-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.btn-forgive:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.count-badge {
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 4px;
}

/* Ranking (Carousel) */
.ranking-section {
    position: relative;
    padding-bottom: 40px;
}
.rank-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--accent-gold);
    color: #000;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
    }
    
    .zange-actions {
        display: flex;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    
    .zange-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
