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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    transform: translateY(-50px);
}

.loading-logo {
    margin-bottom: 40px;
}

.logo-pulse {
    width: 80px;
    height: 80px;
    border: 2px solid #00ff88;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    animation: pulse 2s infinite;
}

.logo-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    border-radius: 8px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.main-content.visible {
    opacity: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    letter-spacing: 1px;
}

.controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.control-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    transform: translateY(-2px);
}

/* Canvas Container */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#nft-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Info Panel */
.info-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    z-index: 100;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
}

.info-panel.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.info-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #00ff88;
}

.info-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.4;
}

.geoyuan-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 100px;
}

.meta-value {
    font-size: 14px;
    color: #00ff88;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 250px;
}

/* Marketplace Controls */
.marketplace-controls {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.marketplace-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    min-width: 120px;
}

.buy-btn {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    color: #000;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.sell-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff9e7d);
    color: #000;
}

.sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.footer-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-content h1 {
        font-size: 20px;
    }
    
    .controls {
        width: 100%;
        justify-content: center;
    }
    
    .control-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .info-panel {
        max-width: 90%;
        padding: 15px;
    }
    
    .footer {
        right: 50%;
        transform: translateX(50%);
        text-align: center;
    }
}