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

:root {
    /* Crypto Ninja Color Palette */
    --primary-ninja: #1a1b2e;
    --secondary-ninja: #16213e;
    --accent-ninja: #0f3460;
    --gold-ninja: #e94560;
    --silver-ninja: #533483;
    --highlight: #e94560;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-ninja) 0%, var(--secondary-ninja) 35%, var(--accent-ninja) 70%, var(--silver-ninja) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(83, 52, 131, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(15, 52, 96, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.profile-image {
    margin-bottom: 24px;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, var(--gold-ninja), var(--silver-ninja), var(--gold-ninja));
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    z-index: -1;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    object-fit: cover;
    box-shadow: 
        0 16px 64px var(--shadow-heavy),
        0 8px 32px var(--shadow-medium),
        inset 0 0 0 1px var(--glass-border);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image:hover img {
    transform: scale(1.05);
    box-shadow: 
        0 20px 80px var(--shadow-heavy),
        0 12px 40px var(--shadow-medium),
        inset 0 0 0 1px var(--glass-border);
}

.username {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-shadow: 
        0 4px 8px var(--shadow-medium),
        0 0 40px rgba(233, 69, 96, 0.3);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--gold-ninja));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

.bio {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 2px 4px var(--shadow-light);
    max-width: 300px;
    margin: 0 auto;
}

.newsletter-cta {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 50px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--gold-ninja) 0%, #ff6b6b 50%, var(--silver-ninja) 100%);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 12px 40px rgba(233, 69, 96, 0.3),
        0 4px 16px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite, fadeInUp 0.8s ease-out 0.2s both;
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.newsletter-cta:hover::before {
    left: 100%;
}

.newsletter-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(233, 69, 96, 0.4),
        0 8px 24px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.newsletter-icon {
    font-size: 36px;
    flex-shrink: 0;
    animation: bounce 1s infinite;
}

.newsletter-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.newsletter-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
    text-shadow: 0 2px 4px var(--shadow-light);
}

.newsletter-subtitle {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.3;
    font-weight: 400;
}

.category-section {
    width: 100%;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
}

.category-section:nth-child(3) {
    animation-delay: 0.4s;
}

.category-section:nth-child(4) {
    animation-delay: 0.6s;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--glass-bg);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-header:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.category-image {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 16px;
    object-fit: cover;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: none;
    box-shadow: 0 4px 16px var(--shadow-light);
}

.category-image[src]:not([src=""]) {
    display: block;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px var(--shadow-light);
    margin: 0;
    letter-spacing: -0.01em;
}

.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: var(--glass-bg);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-button:hover::before {
    opacity: 1;
}

.link-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 48px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.link-icon {
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.link-button:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    display: block;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--text-primary);
    text-shadow: 0 1px 2px var(--shadow-light);
}

.link-description {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Enhanced hover effects for different link types */
.link-button.blog:hover {
    background: linear-gradient(135deg, rgba(41, 201, 180, 0.2), rgba(42, 170, 156, 0.1));
    box-shadow: 0 16px 48px rgba(41, 201, 180, 0.2);
}

.link-button.youtube:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(204, 0, 0, 0.1));
    box-shadow: 0 16px 48px rgba(255, 0, 0, 0.2);
}

.link-button.radio:hover {
    background: linear-gradient(135deg, rgba(243, 152, 0, 0.2), rgba(214, 128, 0, 0.1));
    box-shadow: 0 16px 48px rgba(243, 152, 0, 0.2);
}

.link-button.anime:hover {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(238, 90, 36, 0.1));
    box-shadow: 0 16px 48px rgba(233, 69, 96, 0.2);
}

.link-button.amazon:hover {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(230, 126, 34, 0.1));
    box-shadow: 0 16px 48px rgba(255, 149, 0, 0.2);
}

.link-button.mobile:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.1));
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
}

.link-button.tcg:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.1));
    box-shadow: 0 16px 48px rgba(155, 89, 182, 0.2);
}

.link-button.discord:hover {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2), rgba(91, 110, 172, 0.1));
    box-shadow: 0 16px 48px rgba(114, 137, 218, 0.2);
}

.link-button.spotify:hover {
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.2), rgba(25, 182, 81, 0.1));
    box-shadow: 0 16px 48px rgba(30, 215, 96, 0.2);
}

.link-button.podcast:hover {
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.2), rgba(85, 43, 128, 0.1));
    box-shadow: 0 16px 48px rgba(102, 51, 153, 0.2);
}

.footer {
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
    padding: 20px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 
            0 4px 8px var(--shadow-medium),
            0 0 40px rgba(233, 69, 96, 0.3);
    }
    to {
        text-shadow: 
            0 4px 8px var(--shadow-medium),
            0 0 60px rgba(233, 69, 96, 0.5);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 12px 40px rgba(233, 69, 96, 0.3),
            0 4px 16px var(--shadow-medium);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(233, 69, 96, 0.5),
            0 4px 16px var(--shadow-medium);
    }
    100% {
        box-shadow: 
            0 12px 40px rgba(233, 69, 96, 0.3),
            0 4px 16px var(--shadow-medium);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .username {
        font-size: 28px;
    }
    
    .bio {
        font-size: 15px;
    }
    
    .newsletter-cta {
        padding: 20px 24px;
        margin-bottom: 40px;
    }
    
    .newsletter-content {
        gap: 16px;
    }
    
    .newsletter-icon {
        font-size: 32px;
    }
    
    .newsletter-title {
        font-size: 20px;
    }
    
    .newsletter-subtitle {
        font-size: 14px;
    }
    
    .category-header {
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    
    .category-image {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .link-button {
        padding: 18px 20px;
    }
    
    .link-icon {
        font-size: 24px;
        margin-right: 16px;
    }
    
    .link-title {
        font-size: 16px;
    }
    
    .link-description {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 16px 12px;
    }
    
    .newsletter-cta {
        padding: 18px 20px;
    }
    
    .newsletter-content {
        gap: 14px;
    }
    
    .newsletter-icon {
        font-size: 28px;
    }
    
    .newsletter-title {
        font-size: 18px;
    }
    
    .newsletter-subtitle {
        font-size: 13px;
    }
    
    .category-header {
        padding: 14px 18px;
        margin-bottom: 18px;
    }
    
    .category-image {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .links {
        gap: 14px;
    }
    
    .link-button {
        padding: 16px 18px;
    }
    
    .link-icon {
        font-size: 22px;
        margin-right: 14px;
    }
    
    .link-title {
        font-size: 15px;
    }
    
    .link-description {
        font-size: 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.link-button:focus,
.newsletter-cta:focus {
    outline: 2px solid var(--gold-ninja);
    outline-offset: 2px;
}