/* ============================================
   $PIPLUP - Pokédex Themed Memecoin Site
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #1a1f3c;
    --bg-secondary: #0f1225;
    --bg-card: rgba(30, 40, 80, 0.6);
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --accent-water: #5eb5ff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-glow: rgba(94, 181, 255, 0.3);
    --shadow-blue: rgba(59, 130, 246, 0.25);
    --gradient-water: linear-gradient(135deg, #3b82f6, #22d3ee);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        repeating-linear-gradient(135deg,
            transparent,
            transparent 20px,
            rgba(59, 130, 246, 0.03) 20px,
            rgba(59, 130, 246, 0.03) 40px),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    animation: patternShift 20s ease-in-out infinite;
}

@keyframes patternShift {

    0%,
    100% {
        background-position: 0 0;
    }

    50% {
        background-position: 40px 40px;
    }
}

/* Header */
.pokedex-header {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 1rem;
}

.nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-water);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--accent-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--shadow-blue);
}

.pokedex-badge {
    background: var(--gradient-water);
    padding: 0.5rem 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px var(--shadow-blue);
}

.badge-text {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Main Container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Pokemon Title Section */
.pokemon-title {
    text-align: center;
    margin-bottom: 2rem;
}

.pokemon-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
    margin-bottom: 0.5rem;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.5));
    }
}

.pokemon-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.type-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.type-badge.water {
    background: var(--gradient-water);
    box-shadow: 0 4px 15px var(--shadow-blue);
}

.title-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--text-primary);
    color: var(--bg-secondary);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* Pokemon Showcase */
.pokemon-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-effect {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(94, 181, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.main-pokemon-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-water);
    border-radius: 2px;
}

/* Contract Address Section */
.contract-section {
    margin-bottom: 3rem;
}

.ca-box {
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ca-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(94, 181, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.ca-box:hover::before {
    left: 100%;
}

.ca-box:hover {
    border-color: var(--accent-water);
    box-shadow: 0 0 30px var(--shadow-blue);
    transform: translateY(-2px);
}

.ca-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    word-break: break-all;
    flex: 1;
}

.copy-icon {
    color: var(--accent-water);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ca-box:hover .copy-icon {
    transform: scale(1.2);
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

/* Pokemon Description */
.pokemon-description {
    margin-bottom: 3rem;
}

.description-card {
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.description-text:last-of-type {
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glow);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-water);
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 1;
}

.gallery-item:hover {
    border-color: var(--accent-water);
    box-shadow: 0 10px 40px var(--shadow-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-glow);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-blue);
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
.pokedex-footer {
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--border-glow);
    background: linear-gradient(0deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
}

.pokedex-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        gap: 1rem;
    }

    .pokedex-badge {
        padding: 0.4rem 1.5rem;
    }

    .badge-text {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .main-container {
        padding: 1.5rem 1rem 3rem;
    }

    .description-card {
        padding: 1.5rem;
    }

    .stats-row {
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ca-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-arrow {
        width: 36px;
        height: 36px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Utility animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pokemon-title,
.pokemon-showcase,
.contract-section,
.pokemon-description,
.gallery-section {
    animation: fadeInUp 0.8s ease forwards;
}

.pokemon-showcase {
    animation-delay: 0.1s;
}

.contract-section {
    animation-delay: 0.2s;
}

.pokemon-description {
    animation-delay: 0.3s;
}

.gallery-section {
    animation-delay: 0.4s;
}