/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    padding: 15px 0;
    backdrop-filter: blur(40px) saturate(180%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: sticky;
    top: 20px;
    z-index: 100;
    margin: 20px 20px 0 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 -1px 0 rgba(255, 255, 255, 0.1) inset;
    animation: slideDown 0.6s ease-out, liquidGlass 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.header:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
    border-top-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 -1px 0 rgba(255, 255, 255, 0.15) inset;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}



.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.nav-link:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
.color-section, .leaderboard-section {
    padding: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.update-notice {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.color-card {
    aspect-ratio: 1;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
    filter: brightness(1.1);
}

.color-card:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.color-name {
    font-weight: 600;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.color-card:hover .color-name {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Leaderboard */
.leaderboard {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInLeft 0.6s ease-out;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rank {
    font-size: 24px;
    font-weight: 800;
    min-width: 40px;
    text-align: center;
}

.rank.first { color: #ffd700; }
.rank.second { color: #c0c0c0; }
.rank.third { color: #cd7f32; }

.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.leaderboard-details {
    flex: 1;
}

.color-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.market-cap {
    font-size: 16px;
    opacity: 0.8;
}

.status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 15px;
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    opacity: 0.7;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes liquidGlass {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.25) 0%, 
            rgba(255, 255, 255, 0.1) 50%, 
            rgba(255, 255, 255, 0.05) 100%
        );
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(255, 255, 255, 0.12) 50%, 
            rgba(255, 255, 255, 0.08) 100%
        );
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .leaderboard-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        width: 40px;
        height: 40px;
    }
    
    .header {
        margin: 15px 10px 0 10px;
        top: 15px;
        border-radius: 20px;
        backdrop-filter: blur(30px) saturate(160%);
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }
    
    /* Modal responsive adjustments */
    .modal-responsive {
        padding: 30px 20px !important;
        max-width: 95% !important;
    }
    
    .modal-color-image {
        width: 150px !important;
        height: 150px !important;
    }
    
    .modal-button-container {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .modal-button {
        width: 100% !important;
    }
} 