/* nfth.ing - NFT Discovery Platform */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f0f1a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes rotate-diamond {
    from { transform: rotate(45deg) rotateZ(0deg); }
    to { transform: rotate(45deg) rotateZ(360deg); }
}

@keyframes holographic-shift {
    0% { border-image-slice: 1; filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
    100% { border-image-slice: 1; filter: hue-rotate(0deg); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Hero Section - Deep space with holographic brand */
.hero {
    text-align: center;
    padding: 6rem 2rem 3rem;
    background: linear-gradient(180deg, #0f0f1a, #1a1a2e);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 8vw, 3.2rem);
    background: linear-gradient(135deg, #ec4899, #06b6d4, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* Diamond container - rotating display frame */
.diamond-wrapper {
    perspective: 1000px;
    margin: 2rem 0;
}

.diamond {
    width: 220px;
    height: 220px;
    transform: rotate(45deg);
    border: 3px solid;
    border-image: linear-gradient(135deg, #ec4899, #06b6d4, #f59e0b) 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(6, 182, 212, 0.05));
    animation: rotate-diamond 20s linear infinite;
}

.diamond-inner {
    transform: rotate(-45deg);
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.token-id {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 500;
    letter-spacing: 1px;
}

.featured-label {
    font-size: 0.75rem;
    color: #e2e8f0;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.tagline {
    font-size: 0.95rem;
    color: #e2e8f0;
    opacity: 0.7;
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Prismatic dividers */
.prismatic-line {
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #06b6d4, #f59e0b);
    max-width: 500px;
    margin: 3rem auto;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

/* Collection Section - Floating cards */
.collection {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.float-card {
    background: linear-gradient(135deg, #1e1e32, #1a1a2e);
    border: 2px solid;
    border-image: linear-gradient(135deg, #ec4899, #06b6d4, #f59e0b) 1;
    transform: perspective(800px) rotateY(var(--ry, 0deg));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    position: relative;
}

.float-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.float-card:hover {
    transform: perspective(800px) rotateY(0deg) translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.float-card:hover::before {
    opacity: 1;
}

.card-1 { --ry: 8deg; }
.card-2 { --ry: -6deg; }
.card-3 { --ry: 5deg; }
.card-4 { --ry: -4deg; }
.card-5 { --ry: 7deg; }

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.7rem;
    color: #e2e8f0;
}

.card-meta {
    font-size: 0.75rem;
    color: #e2e8f0;
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* Rarity Section - Iridescent color-coded tiers */
.rarity {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ec4899, #06b6d4, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rarity-strip {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.tier {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: pointer;
}

.tier-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.tier-common {
    background: rgba(30, 30, 50, 0.5);
    border: 2px solid #374151;
    color: #9ca3af;
}

.tier-rare {
    background: rgba(6, 182, 212, 0.1);
    border: 2px solid #06b6d4;
    color: #06b6d4;
}

.tier-rare:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.tier-epic {
    background: rgba(236, 72, 153, 0.1);
    border: 2px solid #ec4899;
    color: #ec4899;
}

.tier-epic:hover {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.tier-legendary {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

.tier-legendary:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Vault Section - Final closing */
.vault {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #1a1a2e, #0f0f1a);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vault-token {
    font-size: 2rem;
    animation: glow-pulse 3s ease-in-out infinite;
}

.vault-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.dot-grid {
    display: inline-grid;
    grid-template-columns: repeat(3, 10px);
    gap: 8px;
    margin-top: 3rem;
}

.holo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #06b6d4, #f59e0b);
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Fade-in intersection animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .diamond {
        width: 160px;
        height: 160px;
    }

    .collection {
        gap: 1.5rem;
    }

    .rarity-strip {
        gap: 0.5rem;
    }

    .tier {
        padding: 0.75rem 1rem;
    }

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