/* PokeMarket Styling - Based on Mystery Backpack */

/* Main page background - black like rest of site */
body.pokesubs-market {
    background-color: black !important;
}

/* Container */
.pokesubs-market-container {
    background-color: black;
    color: #fff;
    min-height: 100vh;
    padding: 40px 20px;
}

.max-w-screen-xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid layout */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Base card styling - glass morphism (same as mystery-card) */
.pokemon-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Animated gradient border on hover */
.pokemon-card::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #8b5cf6, #f97316, #a855f7, #ea580c, #8b5cf6);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.pokemon-card::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 18px;
    z-index: -1;
}

.pokemon-card:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

.pokemon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}

/* Standard button styling - same as mystery-backpack */
.btn-primary,
.open-button,
.confirm-btn-yes {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #8b5cf6, #f97316, #a855f7, #ea580c);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    min-width: 140px;
    text-align: center;
}

.btn-primary:hover:not(:disabled),
.open-button:hover:not(:disabled),
.confirm-btn-yes:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary:disabled,
.open-button:disabled,
.confirm-btn-yes:disabled {
    background: rgba(107, 114, 128, 0.3) !important;
    cursor: not-allowed;
    opacity: 0.5;
    animation: none;
    transform: none;
}

/* Secondary button */
.btn-secondary {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

/* Form elements */
.modern-input,
.modern-select {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.modern-select option {
    background: #1f2937;
    color: #fff;
}

/* Tab navigation */
.pokesubs-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    justify-content: center;
}

.pokesubs-tab-button {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.pokesubs-tab-button:hover {
    color: #8b5cf6;
    border-bottom-color: rgba(139, 92, 246, 0.5);
}

.pokesubs-tab-button.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

.pokesubs-tab-content {
    display: none;
}

.pokesubs-tab-content.active {
    display: block;
}

/* Headings */
h1, h2, h3 {
    color: white;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Text colors */
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
    .pokesubs-market-container {
        padding: 20px 10px;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pokesubs-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pokesubs-tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: auto;
    }
}
