/* ========================================
   REUSABLE COMPONENTS CSS
   Extracted from main stylesheet
   ======================================== */

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--apple-dark);
    font-family: 'Press Start 2P', monospace;
    text-shadow: none;
    line-height: 1.6;
    letter-spacing: 2px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 0.75rem;
    color: var(--apple-gray);
    margin-bottom: 50px;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.8;
}

/* ========================================
   PIN CARD COMPONENTS
   ======================================== */

.pin-card {
    min-width: 350px;
    background: var(--apple-white);
    border: 3px solid var(--apple-dark);
    border-radius: 8px;
    padding: 30px;
    scroll-snap-align: start;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: none;
    font-family: 'Press Start 2P', monospace;
}

.pin-card::before {
    display: none;
}

.pin-card:hover::before {
    display: none;
}

.pin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Pin Card - Image Container */
.pin-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--apple-gray-light);
    border: 4px solid var(--apple-border);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.2s ease;
}

.pin-card:hover .pin-image img {
    transform: scale(1.05);
}

/* Pin Card - Rarity Badge */
.pin-rarity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--apple-dark);
    padding: 8px 12px;
    border: 2px solid var(--apple-dark);
    font-size: 0.5rem;
    font-weight: 400;
    color: white;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

/* Pin Card - Details Container */
.pin-details {
    margin-top: 25px;
}

/* Pin Card - Name/Title */
.pin-name {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--apple-dark);
    font-family: 'Press Start 2P', monospace;
    line-height: 1.6;
}

/* Pin Card - Price Display */
.pin-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-change {
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: 500;
}

.price-up {
    background: rgba(54, 255, 144, 0.2);
    color: var(--neon-green);
}

/* ========================================
   PIN STATS COMPONENTS
   ======================================== */

.pin-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: var(--apple-gray-light);
    padding: 15px;
    border: 3px solid #000000;
    border-radius: 8px;
    position: relative;
    z-index: 10000;
}

.stat {
    text-align: center;
    position: relative;
    z-index: 10001;
}

.stat-value {
    font-size: 1.5rem !important;
    color: #000000 !important;
    font-family: 'Press Start 2P', monospace !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10002 !important;
}

.stat-label {
    font-size: 0.75rem !important;
    color: #000000 !important;
    margin-top: 5px;
    font-family: 'Press Start 2P', monospace !important;
    display: block !important;
    visibility: visible !important;
}

/* ========================================
   BUY BUTTON COMPONENT
   ======================================== */

.buy-btn {
    width: 100%;
    background: var(--apple-dark);
    color: white;
    border: 3px solid var(--apple-dark);
    padding: 15px;
    font-weight: 400;
    font-size: 0.7rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    box-shadow: none;
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: 1.6;
    border-radius: 8px;
}

.buy-btn::before {
    display: none;
}

.buy-btn::after {
    display: none;
}

.buy-btn:hover {
    background: white;
    color: var(--apple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.buy-btn:hover::after {
    display: none;
}

/* ========================================
   DASHBOARD CARD COMPONENT
   ======================================== */

.dashboard-card {
    background: var(--apple-gray-light);
    border-radius: 8px;
    padding: 30px;
    border: 2px solid var(--apple-dark);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card::before {
    display: none;
}

.dashboard-card:hover::before {
    display: none;
}

.dashboard-card:hover {
    transform: none;
    box-shadow: none;
}

/* Dashboard Card - Icon */
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Dashboard Card - Title */
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* Dashboard Card - Stats */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Note: .stat-label also defined in PIN STATS section */

/* ========================================
   CLAIM BUTTON COMPONENT
   ======================================== */

.claim-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.claim-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(54, 255, 144, 0.4);
}

/* ========================================
   CTA BUTTONS (Hero/Call-to-Action)
   ======================================== */

.cta-btn {
    padding: 15px 28px;
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
}

.cta-btn.primary {
    background: var(--apple-dark);
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--apple-dark);
    border: 1px solid var(--apple-dark);
}

.cta-btn:hover {
    transform: none;
}

.cta-btn.primary:hover {
    background: #000000;
}

.cta-btn.secondary:hover {
    background: var(--apple-dark);
    color: white;
}

/* ========================================
   MYSTERY BOX COMPONENT
   ======================================== */

.mystery-box {
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.mystery-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mystery-box:hover::before {
    opacity: 0.1;
}

.mystery-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Mystery Box - Tier Label */
.mystery-tier {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--neon-yellow);
}

/* Mystery Box - Title */
.mystery-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mystery Box - Image Container */
.mystery-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
}

.mystery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(144, 54, 255, 0.5));
    animation: mysteryFloat 3s ease-in-out infinite;
}

@keyframes mysteryFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.mystery-box:hover .mystery-image img {
    animation-duration: 1.5s;
}

/* Mystery Box - Features List */
.mystery-features {
    list-style: none;
    margin-bottom: 30px;
}

.mystery-features li {
    padding: 10px 0;
    color: var(--light-text);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mystery-features li::before {
    content: '&';
    color: var(--neon-green);
    font-size: 1.2rem;
}

/* Mystery Box - Price */
.mystery-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mystery Box - Button */
.mystery-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mystery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(144, 54, 255, 0.4);
}

/* ========================================
   LIVE FEED COMPONENT
   ======================================== */

.live-feed {
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    height: 600px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Live Feed - Title */
.feed-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Live Feed - Live Indicator */
.live-indicator {
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Live Feed - Feed Item */
.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: feedSlideIn 0.5s ease;
}

@keyframes feedSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

/* Live Feed - Icon */
.feed-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Live Feed - Content */
.feed-content {
    flex: 1;
}

.feed-content strong {
    color: var(--neon-pink);
    font-weight: 600;
}

.feed-content p {
    margin-bottom: 5px;
    line-height: 1.6;
}

/* Live Feed - Time */
.feed-time {
    font-size: 0.8rem;
    color: var(--light-text);
    opacity: 0.5;
}

/* ========================================
   EVENT COMPONENT
   ======================================== */

.events {
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.event-item {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Event - Date */
.event-date {
    font-size: 0.9rem;
    color: var(--neon-yellow);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event - Title */
.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-text);
}

/* Event - Description */
.event-description {
    font-size: 1rem;
    color: var(--light-text);
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Event - Link */
.event-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.event-link:hover {
    color: var(--neon-pink);
    gap: 10px;
}

/* ========================================
   SOCIAL ICON COMPONENT
   ======================================== */

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--apple-dark);
    border: 2px solid var(--apple-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-icon:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-2px);
}

/* ========================================
   LOADING STATE COMPONENT
   ======================================== */

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
    .pin-card {
        min-width: 300px;
    }

    .dashboard-container,
    .mystery-container {
        grid-template-columns: 1fr;
    }
}
