/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central AI Item */
.central-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.central-ai {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff9ff3);
    color: white;
    padding: 30px 40px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
    animation: centralPulse 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.central-ai:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.6);
}

.ai-icon {
    font-size: 2.5rem;
    animation: rotate 10s linear infinite;
}

.ai-text {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Orbit Container */
.orbit-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Orbit Items */
.orbit-item {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

/* Positioning for each orbit item */
.orbit-1 { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.orbit-2 { top: 15%; left: 75%; animation-delay: 0.5s; }
.orbit-3 { top: 30%; left: 85%; animation-delay: 1s; }
.orbit-4 { top: 50%; left: 90%; animation-delay: 1.5s; }
.orbit-5 { top: 70%; left: 85%; animation-delay: 2s; }
.orbit-6 { top: 85%; left: 75%; animation-delay: 2.5s; }
.orbit-7 { top: 90%; left: 50%; transform: translateX(-50%); animation-delay: 3s; }
.orbit-8 { top: 85%; left: 25%; animation-delay: 3.5s; }
.orbit-9 { top: 70%; left: 15%; animation-delay: 4s; }
.orbit-10 { top: 50%; left: 10%; animation-delay: 4.5s; }
.orbit-11 { top: 30%; left: 15%; animation-delay: 5s; }
.orbit-12 { top: 15%; left: 25%; animation-delay: 5.5s; }

/* Second ring */
.orbit-13 { top: 20%; left: 60%; animation-delay: 0.2s; }
.orbit-14 { top: 25%; left: 70%; animation-delay: 0.7s; }
.orbit-15 { top: 40%; left: 80%; animation-delay: 1.2s; }
.orbit-16 { top: 60%; left: 80%; animation-delay: 1.7s; }
.orbit-17 { top: 75%; left: 70%; animation-delay: 2.2s; }
.orbit-18 { top: 80%; left: 60%; animation-delay: 2.7s; }
.orbit-19 { top: 80%; left: 40%; animation-delay: 3.2s; }
.orbit-20 { top: 75%; left: 30%; animation-delay: 3.7s; }
.orbit-21 { top: 60%; left: 20%; animation-delay: 4.2s; }
.orbit-22 { top: 40%; left: 20%; animation-delay: 4.7s; }
.orbit-23 { top: 25%; left: 30%; animation-delay: 5.2s; }
.orbit-24 { top: 20%; left: 40%; animation-delay: 5.7s; }
.orbit-25 { top: 35%; left: 50%; transform: translateX(-50%); animation-delay: 6s; }

/* Special Nap Item */
.special-nap-orbit {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.special-nap-orbit .nap-content {
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #fecfef);
    padding: 20px 30px;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(255, 154, 158, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    animation: napFloat 4s ease-in-out infinite;
}

.nap-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.important-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(238, 90, 36, 0.3);
    animation: pulse 2s infinite;
}

/* Items */
.item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transform-origin: center;
}

.item.active {
    background: linear-gradient(135deg, #ffd700, #ffb347) !important;
    color: #2c3e50 !important;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.item::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.5s;
}

.item:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.item:hover::before {
    left: 100%;
}

/* Item Descriptions */
.item-description {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 15px;
    max-width: 280px;
    min-width: 200px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    font-size: 0.85rem;
    line-height: 1.4;
    color: #2c3e50;
    z-index: 99999;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    isolation: isolate;
}

.item-description.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.item-description::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffd700;
}

/* Central AI Description */
.central-description {
    position: absolute;
    top: 20%;
    right: 5%;
    background: rgba(255, 255, 255, 0.98);
    border: 3px solid #ff6b6b;
    border-radius: 20px;
    padding: 25px;
    max-width: 350px;
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
    backdrop-filter: blur(15px);
    z-index: 99999;
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    transition: all 0.4s ease;
    isolation: isolate;
}

.central-description.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.central-description h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.central-description p {
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Nap Description */
.nap-description {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 3px solid #ff9a9e;
    border-radius: 20px;
    padding: 20px;
    max-width: 320px;
    box-shadow: 0 20px 50px rgba(255, 154, 158, 0.4);
    backdrop-filter: blur(15px);
    z-index: 99999;
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    transition: all 0.4s ease;
    isolation: isolate;
}

.nap-description.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nap-description h3 {
    color: #ff9a9e;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.nap-description p {
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.85rem;
}

.nap-description strong {
    color: #ff6b6b;
    font-weight: 700;
}

/* Make nap content clickable */
.nap-content {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nap-content:hover {
    transform: scale(1.05);
}

/* Different colors for different types */
.item.programming, .item.python, .item.nodejs, .item.csharp {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.item.chatgpt, .item.claude, .item.copilot {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.item.game, .item.unity, .item.godot, .item.gamedev, .item.sandbox {
    background: linear-gradient(135deg, #45b7d1, #2980b9);
}

.item.engineer, .item.server, .item.vps, .item.caddy, .item.letsencrypt, .item.security {
    background: linear-gradient(135deg, #96ceb4, #27ae60);
}

.item.database, .item.postgresql, .item.redis, .item.appdev {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.item.mahjong, .item.vtuber, .item.streaming {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes centralPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 50px rgba(255, 107, 107, 0.6);
    }
}

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

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

@keyframes napFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

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

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

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .map-container {
        height: 70vh;
        min-height: 500px;
    }
    
    .central-ai {
        font-size: 1.5rem;
        padding: 20px 30px;
    }
    
    .ai-icon {
        font-size: 2rem;
    }
    
    .item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .special-nap-orbit .nap-content {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    /* Adjust description boxes for mobile */
    .item-description {
        max-width: 250px;
        min-width: 180px;
        padding: 12px;
        font-size: 0.8rem;
        margin-left: -125px;
    }
    
    .central-description {
        top: 10%;
        right: 2%;
        left: 2%;
        max-width: none;
        padding: 20px;
        transform: translateY(-20px) scale(0.8);
    }
    
    .central-description.show {
        transform: translateY(0) scale(1);
    }
    
    .nap-description {
        bottom: 5%;
        max-width: 280px;
        padding: 15px;
    }
    
    /* Adjust orbit positions for mobile */
    .orbit-1, .orbit-7 { left: 50%; transform: translateX(-50%); }
    .orbit-2, .orbit-3, .orbit-4 { left: 70%; }
    .orbit-5, .orbit-6 { left: 60%; }
    .orbit-8, .orbit-9, .orbit-10 { left: 30%; }
    .orbit-11, .orbit-12 { left: 40%; }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .central-ai {
        font-size: 1.2rem;
        padding: 15px 25px;
    }
    
    .ai-icon {
        font-size: 1.5rem;
    }
    
    .item {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .map-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .item-description {
        max-width: 200px;
        min-width: 150px;
        padding: 10px;
        font-size: 0.75rem;
        margin-left: -100px;
    }
    
    .central-description {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .nap-description {
        max-width: 250px;
        padding: 12px;
        font-size: 0.8rem;
    }
}

/* Additional Interactive Elements */
.orbit-item {
    animation-fill-mode: both;
}

/* Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
    .item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}
