/* ========================================
   MARKETPLACE PAGE STYLES
   ======================================== */

/* ========== PAGE-SPECIFIC STYLES ========== */
/* Note: Les variables CSS et styles de base sont dans global.css */

/* ========== MARKETPLACE HEADER ========== */
.collection-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.collection-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.collection-header .page-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ========== PARTICLES ========== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('/assets/cta/logos/logo-m-or.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift)) scale(1);
        opacity: 0;
    }
}

.particle:nth-child(1) { left: 10%; animation-duration: 25s; animation-delay: 0s; --drift: 50px; }
.particle:nth-child(2) { left: 20%; animation-duration: 30s; animation-delay: 3s; --drift: -30px; }
.particle:nth-child(3) { left: 30%; animation-duration: 28s; animation-delay: 6s; --drift: 40px; }
.particle:nth-child(4) { left: 40%; animation-duration: 32s; animation-delay: 2s; --drift: -20px; }
.particle:nth-child(5) { left: 50%; animation-duration: 27s; animation-delay: 8s; --drift: 60px; }
.particle:nth-child(6) { left: 60%; animation-duration: 29s; animation-delay: 4s; --drift: -40px; }
.particle:nth-child(7) { left: 70%; animation-duration: 26s; animation-delay: 7s; --drift: 30px; }
.particle:nth-child(8) { left: 80%; animation-duration: 31s; animation-delay: 1s; --drift: -50px; }
.particle:nth-child(9) { left: 90%; animation-duration: 28s; animation-delay: 5s; --drift: 20px; }
.particle:nth-child(10) { left: 15%; animation-duration: 30s; animation-delay: 9s; --drift: -60px; }
.particle:nth-child(11) { left: 25%; animation-duration: 27s; animation-delay: 11s; --drift: 45px; }
.particle:nth-child(12) { left: 35%; animation-duration: 29s; animation-delay: 13s; --drift: -55px; }
.particle:nth-child(13) { left: 45%; animation-duration: 26s; animation-delay: 15s; --drift: 60px; }
.particle:nth-child(14) { left: 55%; animation-duration: 31s; animation-delay: 8s; --drift: -35px; }
.particle:nth-child(15) { left: 65%; animation-duration: 28s; animation-delay: 14s; --drift: 50px; }

/* ========== HEADER STYLES MOVED TO global.css ========== */

/* ========== FOOTER ========== */
/* Les styles du footer sont gérés par global.css */

/* ========== LANGUAGE SELECTOR ========== */
/* Les styles du language selector sont gérés par global.css */

/* ========== MAIN CONTENT ========== */
.main-content {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.construction-container {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.construction-icon {
    font-size: 8rem;
    margin-bottom: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.construction-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #A9B5BD 0%, #E8DDD5 50%, #C8BDB5 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 20px rgba(169, 181, 189, 0.5))
            drop-shadow(0 0 40px rgba(232, 221, 213, 0.3));
    padding-bottom: 1rem;
}

.construction-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #A9B5BD, #E8DDD5, #C8BDB5, transparent);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(50%);
        opacity: 0;
    }
}

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

.construction-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(169, 181, 189, 0.08), rgba(200, 189, 181, 0.08));
    backdrop-filter: blur(15px);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(169, 181, 189, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg,
        rgba(169, 181, 189, 0.5),
        rgba(200, 189, 181, 0.5),
        rgba(169, 181, 189, 0.5)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(169, 181, 189, 0.25),
                0 0 80px rgba(200, 189, 181, 0.15);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(169, 181, 189, 0.5));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    filter: drop-shadow(0 0 25px rgba(169, 181, 189, 0.7));
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #A9B5BD 0%, #E8DDD5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #A9B5BD 0%, #E8DDD5 50%, #C8BDB5 100%);
    color: #1A1C1F;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(169, 181, 189, 0.5),
                0 0 0 0 rgba(169, 181, 189, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.coming-soon-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.coming-soon-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(169, 181, 189, 0.6),
                0 0 60px rgba(232, 221, 213, 0.5);
}

.coming-soon-badge:hover::before {
    left: 100%;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(169, 181, 189, 0.5),
                    0 0 0 0 rgba(169, 181, 189, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(169, 181, 189, 0.7),
                    0 0 0 12px rgba(169, 181, 189, 0);
    }
}

@media (max-width: 768px) {
    .construction-icon {
        font-size: 5rem;
    }

    .construction-title {
        font-size: 2.5rem;
    }

    .construction-subtitle {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== FILTER BUTTON OVERRIDES FOR MARKETPLACE ========== */
/* Override collection.css filter button sizes specifically for marketplace */
.advancement-btn img {
    width: 95% !important;
    height: 95% !important;
    max-width: 95% !important;
    max-height: 95% !important;
    object-fit: contain !important;
}

.faction-btn img {
    max-width: 100% !important;
    max-height: 100% !important;
}

.foil-btn img {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* ========== MODAL OVERRIDE ========== */
/* Override collection.css modal display to ensure it's hidden by default */
.modal {
    display: none !important;
}

.modal.show {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--spacing-lg) !important;
}

/* ========== MARKETPLACE-SPECIFIC CARD ELEMENTS ========== */

.marketplace-price-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.marketplace-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--goa-gold);
    margin-bottom: 12px;
}

.marketplace-seller {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-label {
    font-weight: 600;
    opacity: 0.7;
}

.seller-address {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: var(--goa-blue);
}

.buy-button {
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    color: #4ade80;
    border: 2px solid #4ade80;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.buy-button:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: #22c55e;
    color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.buy-button:active {
    transform: translateY(0);
}

.buy-button .button-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Ajuster la section card-pricing pour le marketplace */
.card-pricing {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-column {
    width: 100%;
}

/* Icône de rareté sur la carte - en bas à droite de l'image */
.card-rarity-icon {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Harmonisation de l'affichage de la carte */
.card-name {
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

/* Badges de rareté et élément */
.card-rarity-badge,
.card-element-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-element-badge .element-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Affichage de la numérotation */
.card-numbering-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.card-numbering-display .numbering-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}

.numbering-value {
    color: var(--color-text);
    font-size: 0.8rem;
}
