/* ============================================
   HOME PAGE - CYBERPUNK MINIMALIST
   ============================================ */

/* CSS Variables - Anthropic Theme */
:root {
    /* Font Families */
    --font-display: 'Syncopate', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-chinese: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Hiragino Sans GB', sans-serif;

    /* Anthropic Brand Colors */
    --primary-color: #d97757;
    --primary-hover: #c86641;
    --secondary-color: #6a9bcc;
    --accent-color: #788c5d;

    /* Background & Text */
    --light-bg: #faf9f5;
    --lighter-bg: #ffffff;
    --dark-bg: #f5f3ee;
    --text-primary: #141413;
    --text-secondary: #5c5b57;
    --text-muted: #8b8a84;

    /* UI Elements */
    --border-color: #e8e6dc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glow: 0 4px 20px rgba(217, 119, 87, 0.15);
}

/* Particle Background */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Hero Section - Vertical Layout */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 0 auto;
}

/* Hero Greeting */
.hero-greeting {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
}

.hero-greeting .bracket {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.hero-greeting .greeting-text {
    margin: 0 0.5rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero Title */
.hero-title {
    margin-bottom: 1.5rem;
}

.title-prefix {
    display: block;
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

/* Name Display - Static */
.name-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display), var(--font-chinese);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.name-line {
    display: block;
    line-height: 1;
}

.name-line:first-child {
    margin-bottom: 0.2rem;
}


/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}
/* Hero Subtitle */
.hero-subtitle {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-subtitle .role {
    position: relative;
    transition: color 0.3s ease;
}

.hero-subtitle .role:hover {
    color: var(--primary-color);
}

.hero-subtitle .divider {
    color: var(--border-color);
}

/* Hero Tagline */
.hero-tagline {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    white-space: nowrap;
}

.hero-tagline .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-tagline .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.hero-tagline .highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Skill Bubbles */
.skill-bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.skill-bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: default;
}

.skill-bubble i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.skill-bubble:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Position bubbles vertically for vertical layout */
.skill-bubble:nth-child(1) { top: 10%; left: 5%; }
.skill-bubble:nth-child(2) { top: 20%; right: 5%; }
.skill-bubble:nth-child(3) { top: 35%; left: 8%; }
.skill-bubble:nth-child(4) { top: 45%; right: 8%; }
.skill-bubble:nth-child(5) { top: 60%; left: 3%; }

/* Scroll Indicator - Invisible but functional */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
    z-index: 1;
    cursor: pointer;
}

/* ============================================
   ABOUT PREVIEW SECTION
   ============================================ */

.about-preview {
    display: block;
    width: 100%;
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}

.section-container {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-number {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 0.875rem;
    color: var(--primary-color);
}

.section-title {
    font-family: var(--font-display), var(--font-chinese);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text .accent {
    color: var(--primary-color);
    font-weight: 700;
}

.about-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.stat-number {
    display: block;
    font-family: var(--font-display), var(--font-chinese);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   WORK PREVIEW SECTION
   ============================================ */

.work-preview {
    display: block;
    width: 100%;
    padding: 8rem 2rem;
    background: var(--darker-bg);
    position: relative;
    z-index: 1;
}

.work-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 2px dashed var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
}

.work-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.work-placeholder p {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 1rem;
    letter-spacing: 0.2em;
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */

.contact-cta {
    display: block;
    width: 100%;
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display), var(--font-chinese);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.glitch-word {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.glitch-word::before,
.glitch-word::after {
    content: attr(data-word);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.glitch-word:hover::before {
    color: #ff00ff;
    animation: glitch-hover-word-1 0.3s ease forwards;
}

.glitch-word:hover::after {
    color: #00ffff;
    animation: glitch-hover-word-2 0.3s ease 0.05s forwards;
}

@keyframes glitch-hover-word-1 {
    0% { transform: translate(0); opacity: 0; }
    20% { transform: translate(-3px, 0); opacity: 1; }
    40% { transform: translate(3px, 0); opacity: 1; }
    60% { transform: translate(-2px, 0); opacity: 1; }
    80% { transform: translate(2px, 0); opacity: 1; }
    100% { transform: translate(0); opacity: 0; }
}

@keyframes glitch-hover-word-2 {
    0% { transform: translate(0); opacity: 0; }
    20% { transform: translate(3px, 0); opacity: 1; }
    40% { transform: translate(-3px, 0); opacity: 1; }
    60% { transform: translate(2px, 0); opacity: 1; }
    80% { transform: translate(-2px, 0); opacity: 1; }
    100% { transform: translate(0); opacity: 0; }
}

.cta-subtitle {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.cta-btn.primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: var(--glow);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-primary);
}

.cta-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cta-btn i {
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }

    .skill-bubble {
        width: 60px;
        height: 60px;
        font-size: 0.5rem;
    }

    .skill-bubble i {
        font-size: 1rem;
    }

    .skill-bubble:nth-child(1) { top: 8%; left: 3%; }
    .skill-bubble:nth-child(2) { top: 18%; right: 3%; }
    .skill-bubble:nth-child(3) { top: 30%; left: 5%; }
    .skill-bubble:nth-child(4) { top: 40%; right: 5%; }
    .skill-bubble:nth-child(5) { display: none; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 100px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .glitch-word::before,
    .glitch-word::after,
    .skill-bubble,
    .scroll-line {
        animation: none;
    }
}

/* ============================================
   BOTTOM TRANSITION
   ============================================ */

.bottom-transition {
    position: relative;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(to bottom, var(--light-bg) 0%, var(--dark-bg) 100%);
    overflow: hidden;
}

.bottom-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%);
}

.bottom-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--accent-color) 100%);
    opacity: 0.3;
}

.transition-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.transition-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.transition-text {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ============================================
   ENHANCED RESPONSIVE LAYOUT
   ============================================ */

@media (max-width: 1024px) {
    .hero-section {
        justify-content: center;
        padding: 5rem 2rem 2rem;
    }

    .about-preview,
    .work-preview,
    .contact-cta {
        padding: 6rem 2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .skill-bubble {
        width: 70px;
        height: 70px;
    }

    .skill-bubble i {
        font-size: 1.25rem;
    }

    .skill-bubble:nth-child(1) { top: 8%; left: 3%; }
    .skill-bubble:nth-child(2) { top: 15%; right: 3%; }
    .skill-bubble:nth-child(3) { top: 30%; left: 5%; }
    .skill-bubble:nth-child(4) { top: 40%; right: 5%; }
    .skill-bubble:nth-child(5) { display: none; }
}

@media (max-width: 768px) {
    .hero-section {
        justify-content: center;
        padding: 4rem 1.5rem 2rem;
        min-height: auto;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-greeting {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .title-prefix {
        font-size: 0.875rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-subtitle .divider {
        display: none;
    }

    .hero-tagline {
        font-size: 0.875rem;
        margin: 0 auto 2rem;
        padding: 0 1rem;
        white-space: nowrap;
    }

    .skill-bubble {
        width: 60px;
        height: 60px;
        font-size: 0.5rem;
    }

    .skill-bubble i {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .skill-bubble:nth-child(1) { top: 6%; left: 2%; }
    .skill-bubble:nth-child(2) { top: 12%; right: 2%; }
    .skill-bubble:nth-child(3) { top: 25%; left: 4%; }
    .skill-bubble:nth-child(4) { display: none; }
    .skill-bubble:nth-child(5) { display: none; }

    .about-preview,
    .work-preview,
    .contact-cta {
        padding: 4rem 1.5rem;
    }

    .section-header {
        gap: 0.5rem;
        margin-bottom: 2rem;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .section-number {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-content {
        gap: 2rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        min-width: 90px;
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }

    .work-grid {
        gap: 1.5rem;
    }

    .work-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    .work-category {
        font-size: 0.5rem;
    }

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

    .work-desc {
        font-size: 0.75rem;
    }

    .work-card-arrow {
        width: 35px;
        height: 35px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .cta-content {
        padding: 0 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-line {
        height: 50px;
    }

    .bottom-transition {
        padding: 3rem 1.5rem 2rem;
    }

    .transition-icon {
        font-size: 1.5rem;
    }

    .transition-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        justify-content: center;
        padding: 3rem 1rem 1.5rem;
    }

    .hero-greeting {
        font-size: 0.625rem;
    }

    .name-display {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .about-preview,
    .work-preview,
    .contact-cta {
        padding: 3rem 1rem;
    }

    .about-text {
        font-size: 0.875rem;
    }

    .stat-item {
        min-width: 80px;
        padding: 0.875rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .work-card {
        padding: 1.25rem;
    }

    .cta-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   GUESTBOOK SECTION
   ============================================ */
.guestbook-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.guestbook-header h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guestbook-header h3 i {
    color: var(--primary-color);
}

/* Form */
.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
}

.guestbook-form textarea {
    min-height: 80px;
    resize: vertical;
}

.guestbook-btn {
    align-self: flex-end;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guestbook-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);
}

.guestbook-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Danmaku Area */
.danmaku-wrapper {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.danmaku-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(217, 119, 87, 0.15);
}

.danmaku-header {
    padding: 0.5rem 1rem;
    background: rgba(217, 119, 87, 0.1);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danmaku-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.danmaku-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.danmaku-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s ease;
}

.danmaku-item.new {
    animation: danmakuIn 0.5s ease forwards;
}

.danmaku-item.animate {
    animation: danmakuFlow 8s linear forwards;
}

.danmaku-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

@keyframes danmakuIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes danmakuFlow {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    90% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Analysis Section */
.guestbook-analysis {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.analysis-header h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-header h4 i {
    color: var(--primary-color);
}

.analysis-content {
    min-height: 100px;
}

.analysis-loading {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-placeholder {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.analysis-summary {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(217, 119, 87, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Cluster Bubbles - Bubble Chart */
.cluster-container {
    width: 100%;
}

.cluster-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.cluster-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--color);
    border-radius: 50%;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: bubbleIn 0.5s ease var(--delay) both;
}

.cluster-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: var(--color);
}

.cluster-bubble:hover .cluster-name,
.cluster-bubble:hover .keyword {
    color: white;
}

.cluster-name {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.cluster-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

.keyword {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

.analysis-time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .guestbook-form {
        gap: 0.5rem;
    }

    .guestbook-btn {
        width: 100%;
        justify-content: center;
    }

    .danmaku-container {
        height: 150px;
    }

    .cluster-bubble {
        width: calc(var(--size) * 0.8);
        height: calc(var(--size) * 0.8);
    }
}
