/* Professional Pokemon Card Grid */

.pokemon-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 450px; /* Increased height for larger images */
    display: flex;
    flex-direction: column;
}

.grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

/* Image Container - Fixed dimensions */
.card-image-wrapper {
    height: 320px; /* Much larger height for prominent images */
    width: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.grid-card .card-image {
    width: 95% !important;
    height: 95% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 4px;
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
}

.no-image svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Card Content */
.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
    line-height: 1.3;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-badges .badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-price {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #334155;
}

.price-main {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
}

.price-secondary {
    font-size: 12px;
    color: #94a3b8;
}

.no-price {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .pokemon-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .grid-card {
        height: 420px;
    }
    
    .card-image-wrapper {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .pokemon-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .grid-card {
        height: 380px;
    }
    
    .card-image-wrapper {
        height: 240px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .price-main {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pokemon-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
    
    .grid-card {
        height: 340px;
    }
    
    .card-image-wrapper {
        height: 220px;
    }
    
    .card-content {
        padding: 8px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .card-meta {
        font-size: 11px;
    }
}

/* Loading and Empty States */
.grid-loading,
.grid-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #64748b;
    text-align: center;
}

.grid-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.grid-empty h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #94a3b8;
}

.grid-empty p {
    font-size: 14px;
    color: #64748b;
}