/* style.css */
:root {
    --bg-color: #0a0a12;
    --text-primary: #e0e0ff;
    --text-secondary: #8a8a9d;
    --accent-color: #00f0ff;
    --accent-secondary: #ff00c8;
    --glass-bg: rgba(20, 20, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-en: 'Outfit', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

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

/* スムーズスクロール設定 */
html {
    scroll-behavior: smooth;
}

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

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 200, 0.08) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 右端ドットナビゲーション */
.dot-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.dot-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* ドットのクリック領域を充分に確保 */
    width: 20px;
    height: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
}

/* ホバー時・アクティブ時のドット */
.dot-nav-item:hover .dot,
.dot-nav-item.active .dot {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    transform: scale(1.4);
}

/* ホバー時に表示するラベル（ドットの左側に表示） */
.dot-nav-item::before {
    content: attr(data-label);
    position: absolute;
    /* 要素の左端から8px左側に配置、ドットと重ならない */
    right: calc(100% + 8px);
    top: 50%;
    white-space: nowrap;
    background: rgba(10, 10, 18, 0.85);
    color: var(--accent-color);
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    opacity: 0;
    transform: translateY(-50%) translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.dot-nav-item:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* スマホ対応: 画面幅が素の小さい場合はドットナビを右小さめに */
@media (max-width: 500px) {
    .dot-nav {
        right: 0.6rem;
    }
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel:nth-child(1) { animation-delay: 0.1s; }
.glass-panel:nth-child(2) { animation-delay: 0.2s; }
.glass-panel:nth-child(3) { animation-delay: 0.3s; }
.glass-panel:nth-child(4) { animation-delay: 0.4s; }

h1, h2, h3 {
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

p, span, div {
    font-family: var(--font-jp);
}

/* Hero Section */
.profile-hero {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transition: transform 0.5s ease;
    background-color: #1a1a2e; /* placeholder background */
}

.avatar-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

.status-indicator.online {
    background-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.user-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.vrchat-id {
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: var(--font-en);
    margin-bottom: 1rem;
}

.catchphrase {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-item .icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 12px;
}

.about-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.about-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tags Section */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.tag.inactive {
    background: rgba(120, 120, 130, 0.1);
    border-color: rgba(120, 120, 130, 0.3);
    color: var(--text-secondary);
}

.tag.inactive:hover {
    background: rgba(120, 120, 130, 0.2);
    box-shadow: none;
    color: var(--text-secondary);
}

/* Links Section */
.link-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: block;
    padding: 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
    transform: translateX(5px);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-name {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.service-id {
    color: var(--text-primary);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-en);
}

.link-memo {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ほとんど見てない系の inactive カード */
.link-card.inactive {
    opacity: 0.6;
    border-color: transparent;
}
.link-card.inactive:hover {
    opacity: 0.9;
    border-color: var(--glass-border);
    box-shadow: none;
}
.link-card.inactive::before {
    background: var(--text-secondary);
}
.link-card.inactive .service-name {
    color: var(--text-primary);
}

/* Amazon 用のスペシャルカード */
.link-card.special-card::before {
    background: var(--accent-secondary);
}
.link-card.special-card:hover {
    border-color: rgba(255, 0, 200, 0.3);
    box-shadow: 0 4px 20px rgba(255, 0, 200, 0.1);
}
.link-card.special-card .service-name {
    color: var(--accent-secondary);
}

footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}
